Open jylink opened 4 years ago
where you able to resolve your issue, as I was wondering the same thing? also is it possible to keep multiple yolo heads, and just use the contrastive loss on one of the inputs to the yolo layers
@hellboy5 nope, still no idea :/
Might be a guess, but very similar error was happening with very early version of Yolov4 (NaN issue). What @AlexeyAB did, so he decreased learning rate twice. I tried to do the same and so far learning is still in progress. You could do the same - set learning_rate=0.00131 in yolov4-tiny_contrastive.cfg
Decreasing learning rate twice helped at least in my case
@pauliustumas hi, did you decrease learning rate in yolov4_contrastive or in yolov4_tiny_contrastive? I mean I got those random errors only in yolov4_contrastive while yolov4_tiny_contrastive works fine.
the error was happening with yolov4_tiny_contrastive using custom dataset, but haven't tested with yolov4_contrastive yet
Yes, in your case the issue would be definitely not the learning rate. Tried to run your version, issue happens like you described.
What does classes mean in the contrastive section ? In the last yolo layer classes is 80 but in the last contrastive layer classes is 1
I guess it was an error and on my case I have changed to one
I can train a normal yolov4, but when I trained yolov4+contrastive for embedding, I got error after some iterations, sometimes it is segmentation fault, sometimes it is N==0 error. What could be the reason?
Makefile:
Command I used:
Header info:
Error message (segmentation fault):
Error message (N==0):
The darknet repo is cloned in September 5
Dataset I used is my own dataset with 4 classes. About 12,000 images in jpg, jpeg, and png.
No
bad.list
orbad_label.list
founded.cfg: yolov4-em-bf-vis.txt