Open LeeroyHannigan opened 6 years ago
If the train uses your custom dataset, and it's initial training. you should be use 'burn_in' because gradient and loss are very unstable in the initial train. check the code and search 'seen' in https://github.com/marvis/pytorch-yolo2/blob/master/train.py
i have the same questions... Do you had some idea about this?
This script apparently helps you identify when the Nans start to occur
https://gist.github.com/yuq-1s/ce63a306f1d39d1c0c80d33f7855f3b5
But I am not sure how to use it with darkflow - if you work it out please let me know
You are getting nan cuz the Ymin is bigger than Ymax:
<bndbox>
<xmin>69</xmin>
<ymin>94</ymin>
<xmax>77</xmax>
<ymax>77</ymax>
</bndbox>
Make sure that Min is smaller than Max for both X and Y.
Hi all, Apologies, this is my first time using object detection of any sort, and in fact my first time using python. While trying to train my data set I am getting results as nan. The error i receive is: RuntimeWarning: invalid value encountered in sqrt obj[4] = np.sqrt(obj[4])
Sample annotation xml file
cfg file
I hope someone can point me in the right direction. Its the first time i've tried training my own model. Thanks, Lee