DIGITS icon indicating copy to clipboard operation
DIGITS copied to clipboard

Unable to visualize model: "AttributeError"

Open DreSimpelo opened this issue 10 years ago • 5 comments

When I click on visualize, I get this error:

500: INTERNAL SERVER ERROR AttributeError 'google.protobuf.pyext._message.RepeatedScalarConta' object has no attribute '_values'

This happens to any model I try to visualize (LeNet, AlexNet, etc).

I have libprotoc version 2.6.0

~:>>protoc --version libprotoc 2.6.0

I also have pydot2 1.0.33

~:>>pip list | grep -i dot pydot2 (1.0.33)

DreSimpelo avatar Feb 21 '16 19:02 DreSimpelo

I have the same problem, did you figure out? @DreSimpelo

wenwei202 avatar Oct 21 '16 21:10 wenwei202

@wenwei202 Let removed the "._values" on lines 94,96,98 in python/caffe/draw.py. Looks like it wants to get the length of the array. I worked by remove them

mjohn123 avatar Feb 13 '17 04:02 mjohn123

The above solution is fine, but note this. In short, you could consider installing the lower version of protobuf that doesn't complain about the issue. i.e. pip install protobuf==2.6.1

chunjy92 avatar Jul 25 '17 01:07 chunjy92

@chunjy92 it does not work for me using protobuf==2.6.1. Instead, protobuf==3.1.0 works for me.

IamMegatron2025 avatar Sep 07 '17 07:09 IamMegatron2025

Thanks your post @IvyGongoogle, I had the same problem but I could solve the problem after update protobuf to 3.1.0 from 2.6.1. I use pytho3.5.

ToruHironaka avatar Oct 04 '17 17:10 ToruHironaka