mxnet-im2rec_tutorial icon indicating copy to clipboard operation
mxnet-im2rec_tutorial copied to clipboard

Multiprocessing not available, fall back to single threaded encoding imread read blank (None) image for file: /home/opencv/–center-crop/Downloads/img/h_101.jpg

Open jasperDD opened this issue 5 years ago • 1 comments

When i try create .rec files using im2rec.py github.com apache/incubator-mxnet/blob/master/tools/im2rec.py i get these errors,what does it mean and how to fix

machine:~$ python Downloads/im2rec.py Downloads/train –center-crop --resize 224 --pack-label Creating .rec file from /home/opencv/Downloads/train/dog.lst in /home/opencv/Downloads/train multiprocessing not available, fall back to single threaded encoding imread read blank (None) image for file: /home/opencv/–center-crop/Downloads/img/h_101.jpg Traceback (most recent call last): File “Downloads/im2rec.py”, line 386, in record.write_idx(item[0], s) File “/home/opencv/.local/lib/python2.7/site-packages/mxnet/recordio.py”, line 285, in write_idx self.write(buf) File “/home/opencv/.local/lib/python2.7/site-packages/mxnet/recordio.py”, line 135, in write ctypes.c_size_t(len(buf)))) TypeError: object of type ‘NoneType’ has no len()

jasperDD avatar Feb 27 '19 15:02 jasperDD

I decided problem by this way

python Downloads/im2rec.py Downloads/train . --center-crop --resize 224 --pack-label

jasperDD avatar Feb 28 '19 15:02 jasperDD