{"action":"opened","issue":{"url":"https://api.github.com/repos/mil-tokyo/webdnn/issues/574","repository_url":"https://api.github.com/repos/mil-tokyo/webdnn","labels_url":"https://api.github.com/repos/mil-tokyo/webdnn/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/mil-tokyo/webdnn/issues/574/comments","events_url":"https://api.github.com/repos/mil-tokyo/webdnn/issues/574/events","html_url":"https://github.com/mil-tokyo/webdnn/issues/574","id":260460744,"number":574,"title":"convert_caffe.py: convert() takes 3 positional","user":{"login":"kylemcdonald","id":157106,"avatar_url":"https://avatars3.githubusercontent.com/u/157106?v=4","gravatar_id":"","url":"https://api.github.com/users/kylemcdonald","html_url":"https://github.com/kylemcdonald","followers_url":"https://api.github.com/users/kylemcdonald/followers","following_url":"https://api.github.com/users/kylemcdonald/following{/other_user}","gists_url":"https://api.github.com/users/kylemcdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/kylemcdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylemcdonald/subscriptions","organizations_url":"https://api.github.com/users/kylemcdonald/orgs","repos_url":"https://api.github.com/users/kylemcdonald/repos","events_url":"https://api.github.com/users/kylemcdonald/events{/privacy}","received_events_url":"https://api.github.com/users/kylemcdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-26T01:14:59Z","updated_at":"2017-09-26T01:14:59Z","closed_at":null,"author_association":"NONE","body":"Testing on the latest version of webdnn on Ubuntu 16.04 and Python 3.6. Running the `caffenet_conversion.ipynb`, on this line: `!python ../../bin/convert_caffe.py --input_name data --input_shape '(1,3,227,227)' --output_names fc8 --out output data/bvlc_reference_caffenet.caffemodel` there is an error:\r\n\r\n```\r\n[convert_caffe] Loading caffe model... (usually takes several minutes)\r\n[convert_caffe] Generating feedforward graph\r\nTraceback (most recent call last):\r\n  File \"../../bin/convert_caffe.py\", line 103, in <module>\r\n    main()\r\n  File \"../../bin/convert_caffe.py\", line 75, in main\r\n    graph = converter.convert(chainer_cg, [input_blob], output_blobs)  # type: Graph\r\nTypeError: convert() takes 3 positional arguments but 4 were given\r\n```\r\n\r\nIt looks like line 75:\r\n\r\n```\r\ngraph = converter.convert(chainer_cg, [input_blob], output_blobs)\r\n```\r\n\r\nShould probably read:\r\n\r\n```\r\ngraph = converter.convert([input_blob], output_blobs)\r\n```\r\n\r\nBut I'm not sure. When I switch the code, and run from the command line (to make sure that the environment variables are all set correctly) then I get:\r\n\r\n```\r\n$ python ../../bin/convert_caffe.py --input_name data --input_shape '(1,3,227,227)' --output_names fc8 --out output data/bvlc_reference_caffenet.caffemodel\r\n[convert_caffe] Loading caffe model... (usually takes several minutes)\r\n[convert_caffe] Generating feedforward graph\r\n[convert_caffe] Generating descriptors\r\n/home/kyle/anaconda3/lib/python3.6/site-packages/webdnn-1.1.0-py3.6.egg/webdnn/util/console.py:27: Warning: [WebGPUDescriptorGenerator] 'xcrun' command is not found. validation of generated source code in webgpu backend is skipped.\r\n  warnings.warn(message, category)\r\nINFO:root:generating system library: libcxxabi.bc... (this will be cached in \"/home/kyle/.emscripten_cache/asmjs/libcxxabi.bc\" for subsequent builds)\r\nINFO:root: - ok\r\nINFO:root:generating system library: dlmalloc.bc... (this will be cached in \"/home/kyle/.emscripten_cache/asmjs/dlmalloc.bc\" for subsequent builds)\r\nINFO:root: - ok\r\nINFO:root:generating system library: libc.bc... (this will be cached in \"/home/kyle/.emscripten_cache/asmjs/libc.bc\" for subsequent builds)\r\nINFO:root: - ok\r\nINFO:root:generating system library: wasm-libc.bc... (this will be cached in \"/home/kyle/.emscripten_cache/asmjs/wasm-libc.bc\" for subsequent builds)\r\nINFO:root: - ok\r\n```\r\n\r\nWhich looks good to me. Next I need to try it on a model that is smaller so I can actually test it :)"}}
{"actor":{"display_login":"kylemcdonald"}}