Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #5

Open
jasperDD opened this issue Feb 27, 2019 · 1 comment

Comments

@jasperDD
Copy link

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
Copy link
Author

I decided problem by this way

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant