Open lee-t opened 7 years ago
Hi! Tell me, please, what is the value of subdivision
in you .cfg file?
From the file tiny-yolo-voc-new.cfg:
[net]
batch=64
subdivisions=8
width=416
height=416
channels=3
If you still have this problem, try to increase subdivision by the power of 2 (2,,4,8)
Hi @dimaxano may I know which part of the darkflow code use the subdivisions?
Hi! Unfortunately, I didn't found any mentions of "subdivision" in the source code. But increasing this parameter allows me to avoid ValueError: need at least one array to concatenate
Hi @lee-t , I think the error is cause by the data augmentation in preprocess function at predict.py file. You can try to disable the scale, translation, flipping and recolor function.
i have this problem also and i found out that it came from not clean data.
I added this code if len(x_batch) == 0: continue
above x_batch = np.concatenate(x_batch, 0)
darkflow/net/yolo/data.py to ignore it. Hope this can help.
My guess is it is something to do with the memory. I reduced the batch size im my code and it worked fine. Not very sure though.
I just need a little help on something that keeps happening to my training runs. I'm trying to train tiny-yolo on my on data set and I cant complete a full training run.
The command used:
python3 flow --model cfg/tiny-yolo-voc-new.cfg --load bin/tiny-yolo-voc.weights --train --dataset annotations_pascal/JPEGImages --annotation annotations_pascal/Annotations --gpu 0.7
And the error i get during the run
As far as I can tell, x_batch is empty and shuffle throws out this error. I don't understand enough about the code to know why this would occur during training.