{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/700","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/700/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/700/events","html_url":"https://github.com/BVLC/caffe/issues/700","id":37896206,"number":700,"title":"Extract Features from fc7 ","user":{"login":"afshindn","id":5307012,"avatar_url":"https://avatars.githubusercontent.com/u/5307012?v=3","gravatar_id":"","url":"https://api.github.com/users/afshindn","html_url":"https://github.com/afshindn","followers_url":"https://api.github.com/users/afshindn/followers","following_url":"https://api.github.com/users/afshindn/following{/other_user}","gists_url":"https://api.github.com/users/afshindn/gists{/gist_id}","starred_url":"https://api.github.com/users/afshindn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afshindn/subscriptions","organizations_url":"https://api.github.com/users/afshindn/orgs","repos_url":"https://api.github.com/users/afshindn/repos","events_url":"https://api.github.com/users/afshindn/events{/privacy}","received_events_url":"https://api.github.com/users/afshindn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-07-15T15:37:48Z","updated_at":"2015-07-01T09:55:54Z","closed_at":"2014-07-15T16:13:08Z","body":"Hi\r\n\r\nI have two questions. \r\n\r\n1. The tutorial provided (http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/filter_visualization.ipynb) to extract features from different layers does not seem to be an efficient way of doing it. It takes around 0.5 second to extract features. Is there a way to speed it up or process images in batch mode? I assume it should take only a couple ms on a K40.\r\n\r\n2. I tried to use the binary provided in builds/tools/extract_features.bin which seems to have batch model built in. But the features are save in leveldb format and I don't know how to read that in python?\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/117572942","html_url":"https://github.com/BVLC/caffe/issues/700#issuecomment-117572942","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/700","id":117572942,"user":{"login":"anurikadisha","id":10763005,"avatar_url":"https://avatars.githubusercontent.com/u/10763005?v=3","gravatar_id":"","url":"https://api.github.com/users/anurikadisha","html_url":"https://github.com/anurikadisha","followers_url":"https://api.github.com/users/anurikadisha/followers","following_url":"https://api.github.com/users/anurikadisha/following{/other_user}","gists_url":"https://api.github.com/users/anurikadisha/gists{/gist_id}","starred_url":"https://api.github.com/users/anurikadisha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anurikadisha/subscriptions","organizations_url":"https://api.github.com/users/anurikadisha/orgs","repos_url":"https://api.github.com/users/anurikadisha/repos","events_url":"https://api.github.com/users/anurikadisha/events{/privacy}","received_events_url":"https://api.github.com/users/anurikadisha/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T09:55:54Z","updated_at":"2015-07-01T09:55:54Z","body":"Hi,\r\n\r\nI ran python python/classify.py examples/images temp from the caffe root directory but get the following error:\r\n\r\nTraceback (most recent call last):\r\n  File \"python/classify.py\", line 138, in <module>\r\n    main(sys.argv)\r\n  File \"python/classify.py\", line 110, in main\r\n    channel_swap=channel_swap)\r\n  File \"/home/anurika/Downloads/caffe-master-n/python/caffe/classifier.py\", line 34, in __init__\r\n    self.transformer.set_mean(in_, mean)\r\n  File \"/home/anurika/Downloads/caffe-master-n/python/caffe/io.py\", line 255, in set_mean\r\n    raise ValueError('Mean shape incompatible with input shape.')\r\nValueError: Mean shape incompatible with input shape.\r\n\r\nCan anyone please help?"}}