-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Segmentation fault after training for a few iterations #356
Comments
|
|
Could you please share your train log? Is it always stopping at a particular iteration (or) randomly? |
Stops at random iterations. |
Using gdb trace to check to root cause will be helpful. I've faced similar seg fault in the following cases:
If you're sure that your case is not related to any of the above, you can use gdb to check the trace. |
I get a make error when I set opencv and debug to 1 in the makefile. |
The above was the output of gdb. |
Does any of our annotations contain 0.0 in your training data? If so could you please change it to 0.1 (any smaller non-zero value) and try? |
@groot-1313 What software utility did you use to get annotations in .txt-files for each image? |
I had a dataset annotated using bbox-Label me tool. I used a python script to convert it to format accepted by darknet. |
As I see you use original Darknet repo: https://github.com/pjreddie/darknet/blob/80d9bec20f0a44ab07616215c6eadb2d633492fe/src/region_layer.c#L79 Because in my repo this line is different: Line 76 in 993e3a3
|
The cfg file has only the following changes:
At the bottom:
I checked my annotations. No 0.0. But the txt files have an extra empty line at the bottom. I will try your repo and get back to you @AlexeyAB on this issue thread. |
@AlexeyAB @sivagnanamn I found some annotations with 0.0. Thank you for helping. I will make the required changes. |
I have the same problem and don't know how to solve it |
I am training on a custom dataset, and have used an anchor size of 10. Using batch size as 64 and 16 subdivisions. It ends the training after a few iterations due to a seg fault.
The text was updated successfully, but these errors were encountered: