Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSWISH Error while make #8

Open
minhtcai opened this issue May 21, 2020 · 8 comments
Open

HSWISH Error while make #8

minhtcai opened this issue May 21, 2020 · 8 comments

Comments

@minhtcai
Copy link

Hi, I was trying to make your repo but got this, how can I fix this?

./src/activations.c: In function ‘get_activation’:
./src/activations.c:59:42: error: ‘HSWISH’ undeclared (first use in this function); did you mean ‘SWISH’?
if (strcmp(s, "hswish") == 0) return HSWISH;
^~~~~~
SWISH
compilation terminated due to -Wfatal-errors.
Makefile:162: recipe for target 'obj/activations.o' failed
make: *** [obj/activations.o] Error 1

Also, what is the logic in your cfg file?
I was trying to run the model in Alexey, the filters before every yolo layer should be
(class+coords+1)*mask right? But when I change it doesn't work.

Thank you!

@timohaha
Copy link

Have you solved the problem?I have the same problem.

@DayBreak-u
Copy link
Owner

i had solved the problem, pull and make it.

@timohaha
Copy link

i had solved the problem, pull and make it.
Dear author,Could you please share your solution?
thank you.

@DayBreak-u
Copy link
Owner

@timohaha add HSWISH and HSIGMODE to darknet.h

@timohaha
Copy link

@timohaha add HSWISH and HSIGMODE to darknet.h

i know。but when i changed darknet.h file. Other problems arose.

./src/yolo_layer.c: In function ‘forward_yolo_layer’: ./src/yolo_layer.c:479:25: warning: variable ‘best_match_t’ set but not used [-Wunused-but-set-variable] int best_match_t = 0; ^ ./src/yolo_layer.c:724:21: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0 ; i< l.classes + 1 ; i++){ ^ compilation terminated due to -Wfatal-errors. Makefile:162: recipe for target 'obj/yolo_layer.o' failed make: *** [obj/yolo_layer.o] Error 1

@minhtcai
Copy link
Author

It works for me now, thanks!

@minhtcai
Copy link
Author

Also, what is the logic in your cfg file?
I was trying to run the model in Alexey, the filters before every yolo layer should be
(class+coords+1)*mask right? But when I change it doesn't work.

So I guess here is
(1+coords+1) = 16, why do you have 14 coords? And where in the code I can read to understand and customize these settings?

Thank you!

@DayBreak-u
Copy link
Owner

you can comparre my code with https://github.com/AlexeyAB/darknet , the data.c and yolo_layer.c should be change , now only support 5 point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants