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

AttributeError: 'dict' object has no attribute 'itervalues' in /caffe/python/caffe/pycaffe.py line 260 #156

Open
dfki-bruce opened this issue Apr 13, 2018 · 1 comment

Comments

@dfki-bruce
Copy link

dfki-bruce commented Apr 13, 2018

Dear All,

Initially an error "xrange is not defined" came when I tried to run the demo.py, then I changed the "xrange" to "range" and the py script started to run,however , anothe error came:
I0414 00:13:46.749788 14861 upgrade_proto.cpp:628] Successfully upgraded file specified using deprecated V1LayerParameter
Traceback (most recent call last):
File "crfasrnn_demo.py", line 205, in
main(sys.argv[1:])
File "crfasrnn_demo.py", line 201, in main
run_crfrnn(input_file, output_file, gpu_device)
File "crfasrnn_demo.py", line 138, in run_crfrnn
segmentation = crfrnn_segmenter(_MODEL_DEF_FILE, _MODEL_FILE, gpu_device, [im])
File "crfasrnn_demo.py", line 97, in crfrnn_segmenter
out = net.forward_all(**{net.inputs[0]: caffe_in})
File "../caffe/python/caffe/pycaffe.py", line 176, in _Net_forward_all
for batch in self._batch(kwargs):
File "../caffe/python/caffe/pycaffe.py", line 260, in _Net_batch
num = len(blobs.itervalues().next())
AttributeError: 'dict' object has no attribute 'itervalues'

It seems that it is an compatible issue,

thank you in advance!

@hassanrazakhalid
Copy link

Yes same issue. i think this caffe version is meant for python2. Folder name is kind of misleading as it says python3

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

2 participants