Open lqtrung-95 opened 5 years ago
I have the same error right now, did you fixed?
I was having the same issue and I seem to have solved it. After investigating my issue, this error was appearing due to the image being None. This was caused by dataset/text_data.py attempting to read path/to/dataset/image_name and not finding an image there. The image is actually located in path/to/dataset/data/image_name as described in the README. The proper path is actually commented out in line 32 in dataset/text_data.py and I'm not sure why. Is this a bug?
So the solution for me was to uncomment line 32 and comment line 33
The error is because the json hasnot the correct path to the images. That’s why. I solved this issue in mu computer
Hi I'm using the crnn-pytorch project to train a new model with my custom dataset, but when I run the command python train.py --data-path datatrain --test-init True --test-epoch 10 --output-dir snapshot --batch-size 8, it returned the error like this
I'm pretty sure that the data and desc.json are in the right format. If anyone can help I would be very appreciated, thanks so much.