-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Draw Net Problem #1709
Comments
Do |
Hi, This is a real bug (on the dev branch at least) and should be corrected. The problem is that you updated the layers protobuf format without updating draw_net.py I've uploaded a patch here: Best, |
@jsupancic can you send a PR to dev with the fix? This was broken by #1694. Thanks. |
Introduced by Layer type is a string BVLC#1694
@shelhamer I've sent a PR to Dev with the fix (#1860) Best, |
Introduced by Layer type is a string #1694
Dear Yash,
My guess is a syntax error/version mismatch in your net.prototxt file.
Could you send me (1) the command you are running and (2) the network
prototxt you are trying with?
Best,
James
|
Dear James @jsupancic and Evan @shelhamer , I downloaded and compiled the latest versions of both master and dev branches, but I still get the error I run the command (from Caffe installation directory) Do you have any idea why this may happen? Thank you in advance, |
Dear Anastasia @nastyad , I cannot reproduce your problem. When I My guess is that something is wrong with the Python implementation of the caffe protobufs, maybe due to some version incompatibility? Could you post your caffe_pb2.py somewhere? Best, |
Dear James @jsupancic, I put the file here: http://www.cs.technion.ac.il/~nastyad/caffe_pb2.py Thanks, |
Hello, I try to git pull to the latest caffe code ,and make all; make pycaffe; How to fix it? |
Try to build the latest protobuf, install it in /usr, compile python wrapper too. And re-build Caffe again. |
@VPlatoon Hi, do you solve the problem by installing the latest protobuf?
Thank you. |
I try to visualize the network.But I get the errors.
AttributeError: type object 'LayerParameter' has no attribute 'LayerType'
I check the caffe caffe_pb2.py and get this:
_LAYERPARAMETER_LAYERTYPE = descriptor.EnumDescriptor(
name='LayerType',
full_name='caffe.LayerParameter.LayerType',
filename=None,
file=DESCRIPTOR,
Below is my use case:
import caffe
from caffe import draw
from caffe.proto import caffe_pb2
enddef
net = caffe_pb2.NetParameter()
with open('model/_iter_500000.caffemodel','rb') as f:
net.ParseFromString(f.read())
print net.name
draw.draw_net_to_file(net,'network.png')
The text was updated successfully, but these errors were encountered: