Issues with training.
See original GitHub issueHey man,
This is the error I am getting right now.
Traceback (most recent call last): File "gen_anchors.py", line 132, in <module> _main_(args) File "gen_anchors.py", line 111, in _main_ centroids = run_kmeans(annotation_dims, num_anchors) File "gen_anchors.py", line 57, in run_kmeans indices = [random.randrange(ann_dims.shape[0]) for i in range(anchor_num)] File "gen_anchors.py", line 57, in <listcomp> indices = [random.randrange(ann_dims.shape[0]) for i in range(anchor_num)] File "/home/abraham/anaconda3/envs/yolo/lib/python3.5/random.py", line 195, in randrange raise ValueError("empty range for randrange()") ValueError: empty range for randrange()
Its due to the pkl file for the dataset. How to create pkl for the same?
What is the content for the pkl file?
*Btw its a nice repo 😉, you made yolo v3 in such a short notice
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
@FlyEgle @abramjos
Ok the problem is with “cache” value and config.
Please add “/” at the end of path to the directories and remove empty cache file for dataset. Try then again.
empty randrange() is caused due to no files added to list. If exception occurs temporary file should be removed, but it is not. Then script tries to reuse pickle file to load data.
@stihl1210 Can you describe it more in details? ‘Please add “/” at the end of path to the directories and remove empty cache file for dataset’ directories refer to which?and dataset refer to which?I have removed all pyaches but unfortunately it doesn’t work