{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/3698","repository_url":"https://api.github.com/repos/BVLC/caffe","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/3698/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/3698/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/3698/events","html_url":"https://github.com/BVLC/caffe/issues/3698","id":135275548,"number":3698,"title":"Unable to draw model: \"AttributeError\"","user":{"login":"DreSimpelo","id":8431722,"avatar_url":"https://avatars.githubusercontent.com/u/8431722?v=3","gravatar_id":"","url":"https://api.github.com/users/DreSimpelo","html_url":"https://github.com/DreSimpelo","followers_url":"https://api.github.com/users/DreSimpelo/followers","following_url":"https://api.github.com/users/DreSimpelo/following{/other_user}","gists_url":"https://api.github.com/users/DreSimpelo/gists{/gist_id}","starred_url":"https://api.github.com/users/DreSimpelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DreSimpelo/subscriptions","organizations_url":"https://api.github.com/users/DreSimpelo/orgs","repos_url":"https://api.github.com/users/DreSimpelo/repos","events_url":"https://api.github.com/users/DreSimpelo/events{/privacy}","received_events_url":"https://api.github.com/users/DreSimpelo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-02-21T23:28:42Z","updated_at":"2016-11-07T06:49:01Z","closed_at":"2016-02-23T15:35:48Z","body":"When I try to draw a model, I get this error:\n\n> AttributeError: 'google.protobuf.pyext._message.RepeatedScalarConta' object has no attribute '_values'\n\nI have libprotoc version 3.0.0\n\n>   ~:>>protoc --version\n>   libprotoc 3.0.0\n\nPython 2.7.11 |Anaconda 2.5.0 (64-bit)\n\nMore Details:\n\n```\ncaffe:>> ./python/draw_net.py ./examples/cifar10/cifar10_quick_train_test.prototxt ./visualization.png\nDrawing net to ./visualization.png\nTraceback (most recent call last):\n  File \"./python/draw_net.py\", line 45, in <module>\n    main()\n  File \"./python/draw_net.py\", line 41, in main\n    caffe.draw.draw_net_to_file(net, args.output_image_file, args.rankdir)\n  File \"/home/andre/caffe/python/caffe/draw.py\", line 222, in draw_net_to_file\n    fid.write(draw_net(caffe_net, rankdir, ext))\n  File \"/home/andre/caffe/python/caffe/draw.py\", line 204, in draw_net\n    return get_pydot_graph(caffe_net, rankdir).create(format=ext)\n  File \"/home/andre/caffe/python/caffe/draw.py\", line 151, in get_pydot_graph\n    node_label = get_layer_label(layer, rankdir)\n  File \"/home/andre/caffe/python/caffe/draw.py\", line 94, in get_layer_label\n    layer.convolution_param.kernel_size[0] if len(layer.convolution_param.kernel_size._values) else 1,\nAttributeError: 'google.protobuf.pyext._message.RepeatedScalarConta' object has no attribute '_values'\n\n```\n"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/258759498","html_url":"https://github.com/BVLC/caffe/issues/3698#issuecomment-258759498","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/3698","id":258759498,"user":{"login":"arthink","id":7424943,"avatar_url":"https://avatars.githubusercontent.com/u/7424943?v=3","gravatar_id":"","url":"https://api.github.com/users/arthink","html_url":"https://github.com/arthink","followers_url":"https://api.github.com/users/arthink/followers","following_url":"https://api.github.com/users/arthink/following{/other_user}","gists_url":"https://api.github.com/users/arthink/gists{/gist_id}","starred_url":"https://api.github.com/users/arthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthink/subscriptions","organizations_url":"https://api.github.com/users/arthink/orgs","repos_url":"https://api.github.com/users/arthink/repos","events_url":"https://api.github.com/users/arthink/events{/privacy}","received_events_url":"https://api.github.com/users/arthink/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T06:49:01Z","updated_at":"2016-11-07T06:49:01Z","body":"Just ran into this myself on deconv-deep-vis-toolbox branch\r\nI removed the \"._values\" on lines 94,96,98.  Looks like it wants to get the length of the array.\r\nWorked after that"}}
{"actor":{"display_login":"arthink"}}