jmpap/YOLOV2-Tensorflow-2.0

Training result is abnormal without pre-trained weights.

KevinRyu opened this issue · 5 comments

Hi,

Thanks for sharing your Yolo_v2 implementation using tf 2.0, first.
I trained this neural network after remarking "Load Pre-trained weights" code lines.
But both main and validation loss is not decreased at all. I got a loss graph looks like spike.
I think training is not proceeded correctly. Would you please give me an advice to solve this problem?
For example, I need to adjust hyper parameters, and so on.

jmpap commented

Hi,
I tried to train the model without pre-trained weights. Train loss decreases but validation loss increases. I am not sure it'is possible to train yolo v2 on our own dataset without pre-trained weights. According to the original article, the author explains that the pre-trained weights come from a classification model trained on ImageNet.

Hi,

Thanks for your comment. I misunderstood code lines for loading pretrained weight (output for inference) that you have already been training with your data. I got it. I'll restore remarked code lines again and train it with custom data. By the way, you said train loss decreases. But I didn't see it. In my case, both train and validation loss is abnormal. I didn't understand your codes correctly. I will try again.

jmpap commented

Hi, if your train loss increases or is unstable, you can try a lower learning rate.

jmpap commented

Thank your for your appreciation!