{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/2689","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/2689/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/2689/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/2689/events","html_url":"https://github.com/BVLC/caffe/issues/2689","id":92943518,"number":2689,"title":"Why do the features extracted with matcaffe_demo.m and matcaffe_batch.m for the same input are different?","user":{"login":"tsingtaogemini","id":11583461,"avatar_url":"https://avatars.githubusercontent.com/u/11583461?v=3","gravatar_id":"","url":"https://api.github.com/users/tsingtaogemini","html_url":"https://github.com/tsingtaogemini","followers_url":"https://api.github.com/users/tsingtaogemini/followers","following_url":"https://api.github.com/users/tsingtaogemini/following{/other_user}","gists_url":"https://api.github.com/users/tsingtaogemini/gists{/gist_id}","starred_url":"https://api.github.com/users/tsingtaogemini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsingtaogemini/subscriptions","organizations_url":"https://api.github.com/users/tsingtaogemini/orgs","repos_url":"https://api.github.com/users/tsingtaogemini/repos","events_url":"https://api.github.com/users/tsingtaogemini/events{/privacy}","received_events_url":"https://api.github.com/users/tsingtaogemini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T22:23:37Z","updated_at":"2015-07-04T03:29:15Z","closed_at":null,"body":"I am using Caffe to extract features with matlab wrapper.I have 5011 images as test data set.I chopped all the layers after relu7 in deploy.prototxt. I found out if you take the same image as input of matcaffe_demo.m and matcaffe_batch.m, you will get the different 4096-dim features. Could someone tell me why? what is the differences between you extract features from all these images one by one with matcaffe_demo.m and extract features by listing all these images with matcaffe_batch.m?"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/118454672","html_url":"https://github.com/BVLC/caffe/issues/2689#issuecomment-118454672","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/2689","id":118454672,"user":{"login":"ronghanghu","id":6997335,"avatar_url":"https://avatars.githubusercontent.com/u/6997335?v=3","gravatar_id":"","url":"https://api.github.com/users/ronghanghu","html_url":"https://github.com/ronghanghu","followers_url":"https://api.github.com/users/ronghanghu/followers","following_url":"https://api.github.com/users/ronghanghu/following{/other_user}","gists_url":"https://api.github.com/users/ronghanghu/gists{/gist_id}","starred_url":"https://api.github.com/users/ronghanghu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronghanghu/subscriptions","organizations_url":"https://api.github.com/users/ronghanghu/orgs","repos_url":"https://api.github.com/users/ronghanghu/repos","events_url":"https://api.github.com/users/ronghanghu/events{/privacy}","received_events_url":"https://api.github.com/users/ronghanghu/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T03:29:15Z","updated_at":"2015-07-04T03:29:15Z","body":"You should NOT use matcaffe_demo.m for feature extraction.\r\n\r\nmatcaffe_demo.m is for classification purpose, takes 10 crop (4 corner + 1 center and their x-flips) and average the output from these 10 crops (which is usually not the behavior you want), while matcaffe_batch.m takes only output from one center crop."}}