Reputation: 11
I have used im2rec.py to convert "caltech101 images" into record io format:
I have created "caltech.lst" succesfully using os.system('python %s/tools/im2rec.py --list=1 --recursive=1 --shuffle=1 data/caltech data/101_ObjectCategories'%MXNET_HOME) Then, when I run this : os.system("python %s/tools/im2rec.py --train-ratio=0.8 --test-ratio=0.2 --num-thread=4 --pass-through=1 data/caltech data/101_ObjectCategories"%MXNET_HOME) I have this error : attributeError:'module' object has no attribute 'MXIndexedRecordIO' Please, someone has an idea to fix this error ? Thanks in advance.
Environment info
Operating System:Windows 8.1
MXNet version:0.9.5
Upvotes: 1
Views: 521
Reputation: 171
@user3824903 I think to create a bin directory, you have to compile MXNet from source with option USE_OPENCV=1
Upvotes: 0
Reputation: 16952
If I have found the right version of im2rec.py
then the program is failing at one of the two calls that look like this:
record = mx.recordio.MXIndexedRecordIO(...)
That looks very much as if the code you are running is expecting a different version of mxnet
from the one you have installed. The message is telling you that there isn't a class/function called MXIndexedRecordIO
in module mxnet.recordio
.
Upvotes: 1