wenwei202 / caffe

Caffe for Sparse and Low-rank Deep Neural Networks
Other
379 stars 134 forks source link

Error in running nn_decomposer.py #10

Closed lucwan closed 7 years ago

lucwan commented 7 years ago

I am getting the following errors after running python python/nn_decomposer.py

raceback (most recent call last): File "../python/nn_decomposer.py", line 194, in net_msg.layer._values.insert(layer_idx,low_rank_layer) AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' object has no attribute '_values'

Traceback (most recent call last): File "../python/nn_decomposer.py", line 194, in net_msg.layer.insert(layer_idx,low_rank_layer) AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' object has no attribute 'insert'

i tried protobuf version 2.3, 2.5 and 3.3 what could possibly be wrong at my end, please help me.

wenwei202 commented 7 years ago

Too bad, one of my colleagues met this before, let me check and get you back!

wenwei202 commented 7 years ago

@lucwan feedback: you may need to find if you have installed multiple versions of protobuf (e.g., one in Anaconda and one in system directory). Please make sure you have completely uninstalled all of them, and reinstall one. It worked for us. Let me know it helps or not.

lucwan commented 7 years ago

Thank you @wenwei202 I changed to another PC with Ubuntu 14.04 from Centos 6.7 and it worked fine.

vc-30 commented 6 years ago

Hi @wenwei202 ,

First of all thanks for your work. I'm also facing similar issue and not sure how to fix the multiple protobuf issue. I checked https://github.com/protocolbuffers/protobuf/issues/4001 but, this doesn't seem to be applicable in my case. Please guide me how can I fix this.

wenwei202 commented 6 years ago

Protobuf always sucks. A quick try is to remove all installations of protobuf and reinstall. Sometimes, you will be in trouble if you have multiple versions of protobuf installed.