-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
leveldb iterator is invalid #4
Comments
@yalesong did you solve this problem? I am being bewildered with it. |
@lipond No I haven't. Are you getting the same problem? |
When python dec.py mnist, do you have the error : AttributeError: type object 'Net' has no attribute 'set_phase_train' |
@Hukangrong It appears that you are importing the official, public version of the CAFFE library. This repo contains a modified version of CAFFE and you would have to compile & import that one instead. |
@yalesong Thank you for your reply. Compiling it need much time. I would change the author code rather than build it again. |
Running an experiment with reutersidf10k dataset via
python dec.py reutersidf10k
fails with an errorThe same error occurs with the mnist and the reutersidf datasets. I haven't tried with the stl dataset.
I compiled the Caffe library provided in this repo, downloaded the dataset, and ran
python make_reuters_data.py
as given in the instruction.The error happens when
iter_->value()
is called in: https://github.com/piiswrong/dec/blob/master/caffe/src/caffe/layers/data_layer.cpp#L122It seems https://github.com/piiswrong/dec/blob/master/caffe/src/caffe/layers/data_layer.cpp#L53 creates an invalid iterator; putting a line
CHECK(iter->Valid())
immediately after it fails.My leveldb version is 1.0.7
The text was updated successfully, but these errors were encountered: