You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i draw model,someting happend like this:
Drawing net to netImage/lenet.png
Traceback (most recent call last):
File "python/draw_net.py", line 57, in
main()
File "python/draw_net.py", line 53, in main
caffe.draw.draw_net_to_file(net, args.output_image_file, args.rankdir,phase)
File "/home/linchuangwei/caffe/python/caffe/draw.py", line 245, in draw_net_to_file
fid.write(draw_net(caffe_net, rankdir, ext, phase))
File "/home/linchuangwei/caffe/python/caffe/draw.py", line 223, in draw_net
return get_pydot_graph(caffe_net, rankdir, phase=phase).create(format=ext)
File "/home/linchuangwei/caffe/python/caffe/draw.py", line 167, in get_pydot_graph
node_label = get_layer_label(layer, rankdir)
File "/home/linchuangwei/caffe/python/caffe/draw.py", line 107, in get_layer_label
layer.pooling_param.kernel_size[0] if len(layer.pooling_param.kernel_size._values) else 1,
AttributeError: 'int' object has no attribute '_values'
someone knows why?please help me
The text was updated successfully, but these errors were encountered:
You could either fix bug in Caffe's draw.py file manually or switch to older version of draw.py file.
To fix it manually just delete changes made here. There are 3 additions to draw.py marked with green color. Delete them.
Go here and download Caffe release candidate 4 (previous version). Copy-paste file caffe-rc4.zip/caffe-rc4/python/caffe/draw.py to your working directory.
when i draw model,someting happend like this:
Drawing net to netImage/lenet.png
Traceback (most recent call last):
File "python/draw_net.py", line 57, in
main()
File "python/draw_net.py", line 53, in main
caffe.draw.draw_net_to_file(net, args.output_image_file, args.rankdir,phase)
File "/home/linchuangwei/caffe/python/caffe/draw.py", line 245, in draw_net_to_file
fid.write(draw_net(caffe_net, rankdir, ext, phase))
File "/home/linchuangwei/caffe/python/caffe/draw.py", line 223, in draw_net
return get_pydot_graph(caffe_net, rankdir, phase=phase).create(format=ext)
File "/home/linchuangwei/caffe/python/caffe/draw.py", line 167, in get_pydot_graph
node_label = get_layer_label(layer, rankdir)
File "/home/linchuangwei/caffe/python/caffe/draw.py", line 107, in get_layer_label
layer.pooling_param.kernel_size[0] if len(layer.pooling_param.kernel_size._values) else 1,
AttributeError: 'int' object has no attribute '_values'
someone knows why?please help me
The text was updated successfully, but these errors were encountered: