{"action":"created","issue":{"url":"https://api.github.com/repos/pfnet/chainer/issues/1028","repository_url":"https://api.github.com/repos/pfnet/chainer","labels_url":"https://api.github.com/repos/pfnet/chainer/issues/1028/labels{/name}","comments_url":"https://api.github.com/repos/pfnet/chainer/issues/1028/comments","events_url":"https://api.github.com/repos/pfnet/chainer/issues/1028/events","html_url":"https://github.com/pfnet/chainer/pull/1028","id":140637190,"number":1028,"title":"[WIP] Support ResNet","user":{"login":"takagi","id":1224375,"avatar_url":"https://avatars.githubusercontent.com/u/1224375?v=3","gravatar_id":"","url":"https://api.github.com/users/takagi","html_url":"https://github.com/takagi","followers_url":"https://api.github.com/users/takagi/followers","following_url":"https://api.github.com/users/takagi/following{/other_user}","gists_url":"https://api.github.com/users/takagi/gists{/gist_id}","starred_url":"https://api.github.com/users/takagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takagi/subscriptions","organizations_url":"https://api.github.com/users/takagi/orgs","repos_url":"https://api.github.com/users/takagi/repos","events_url":"https://api.github.com/users/takagi/events{/privacy}","received_events_url":"https://api.github.com/users/takagi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pfnet/chainer/labels/feature","name":"feature","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-14T10:43:47Z","updated_at":"2016-04-12T16:45:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pfnet/chainer/pulls/1028","html_url":"https://github.com/pfnet/chainer/pull/1028","diff_url":"https://github.com/pfnet/chainer/pull/1028.diff","patch_url":"https://github.com/pfnet/chainer/pull/1028.patch"},"body":"I start with finding what caffe functions are missed in chainer from warnings CaffeFunction class leaves for each size of ResNet caffe models.\r\n\r\n    $ python -c \"from chainer.links import caffe\r\n    caffe.CaffeFunction('ResNet-50-model.caffemodel')\" 2>&1 | awk 'NR % 2 == 1 {print $11}' | sort | uniq\r\n    BatchNorm\r\n    Eltwise\r\n    Scale\r\n    Softmax\r\n\r\n    $ python -c \"from chainer.links import caffe\r\n    caffe.CaffeFunction('ResNet-101-model.caffemodel')\" 2>&1 | awk 'NR % 2 == 1 {print $11}' | sort | uniq\r\n    BatchNorm\r\n    Eltwise\r\n    Scale\r\n    Softmax\r\n\r\n    $ python -c \"from chainer.links import caffe\r\n    caffe.CaffeFunction('ResNet-152-model.caffemodel')\" 2>&1 | awk 'NR % 2 == 1 {print $11}' | sort | uniq\r\n    BatchNorm\r\n    Eltwise\r\n    Scale\r\n    Softmax\r\n\r\nHere I found the following four caffe functions should be implemented.\r\n\r\n- BatchNorm\r\n- Eltwise\r\n- Scale\r\n- Softmax\r\n\r\n**To be done**\r\n\r\n- Make CaffeFunction class interpret the caffe functions used in ResNet.\r\n- Make it possible to use ResNet in chainer/examples/modelzoo.\r\n"},"comment":{"url":"https://api.github.com/repos/pfnet/chainer/issues/comments/209001858","html_url":"https://github.com/pfnet/chainer/pull/1028#issuecomment-209001858","issue_url":"https://api.github.com/repos/pfnet/chainer/issues/1028","id":209001858,"user":{"login":"takagi","id":1224375,"avatar_url":"https://avatars.githubusercontent.com/u/1224375?v=3","gravatar_id":"","url":"https://api.github.com/users/takagi","html_url":"https://github.com/takagi","followers_url":"https://api.github.com/users/takagi/followers","following_url":"https://api.github.com/users/takagi/following{/other_user}","gists_url":"https://api.github.com/users/takagi/gists{/gist_id}","starred_url":"https://api.github.com/users/takagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takagi/subscriptions","organizations_url":"https://api.github.com/users/takagi/orgs","repos_url":"https://api.github.com/users/takagi/repos","events_url":"https://api.github.com/users/takagi/events{/privacy}","received_events_url":"https://api.github.com/users/takagi/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T16:45:26Z","updated_at":"2016-04-12T16:45:26Z","body":"Now I catch up the situation that the caffe_pb2.py and  caffe_pb3.py in #974 are generated from maybe the same old version of caffe.proto, which has incompatibility with at least caffe rc3 version, causing some change of interpretation of ConvolutionLayer in CaffeFunction class and its test.\r\n"}}