{"action":"created","issue":{"url":"https://api.github.com/repos/AlfredXiangWu/face_verification_experiment/issues/60","repository_url":"https://api.github.com/repos/AlfredXiangWu/face_verification_experiment","labels_url":"https://api.github.com/repos/AlfredXiangWu/face_verification_experiment/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/AlfredXiangWu/face_verification_experiment/issues/60/comments","events_url":"https://api.github.com/repos/AlfredXiangWu/face_verification_experiment/issues/60/events","html_url":"https://github.com/AlfredXiangWu/face_verification_experiment/issues/60","id":160208061,"number":60,"title":"Extract features with MATLAB","user":{"login":"mhasnat","id":13504754,"avatar_url":"https://avatars.githubusercontent.com/u/13504754?v=3","gravatar_id":"","url":"https://api.github.com/users/mhasnat","html_url":"https://github.com/mhasnat","followers_url":"https://api.github.com/users/mhasnat/followers","following_url":"https://api.github.com/users/mhasnat/following{/other_user}","gists_url":"https://api.github.com/users/mhasnat/gists{/gist_id}","starred_url":"https://api.github.com/users/mhasnat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhasnat/subscriptions","organizations_url":"https://api.github.com/users/mhasnat/orgs","repos_url":"https://api.github.com/users/mhasnat/repos","events_url":"https://api.github.com/users/mhasnat/events{/privacy}","received_events_url":"https://api.github.com/users/mhasnat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2016-06-14T15:15:00Z","updated_at":"2016-10-13T06:53:36Z","closed_at":"2016-07-04T01:35:14Z","body":"Hi,\r\n\r\nI would like to know if you have a Matlab program to extract the features. I have written one but did not get the results properly. For a single image (i.e., batch size = 1), my program is as follows:\r\n\r\n____________________________________________\r\nmodelName = 'LightenedCNN_A_deploy.prototxt';\r\nmodelWeight = 'LightenedCNN_A.caffemodel';\r\ncaffe.set_device(1);\r\ncaffe.set_mode_gpu();\r\n\r\n% Define net\r\nnet = caffe.Net(modelName, modelWeight, 'test');\r\n\r\n% read image\r\nI = rgb2gray(imread('imgName.jpg'));\r\n\r\n% get features\r\nJ(:,:,1,1) = I;\r\nnet.forward({J});\r\nfts = net.blobs('eltwise6').get_data()';\r\n____________________________________________\r\n\r\nI get features of 256 dimension. However, with these features I obtained very low accuracy. I have pre-processed the images with the normalization program written by you.\r\n\r\n- Here I did not scale the value to 1 (by dividing pixel values with 256) as it gives even worse result on LFW.\r\n\r\n- Besides, I would like to inform you that I was unable to load the caffemodel for your CNN-B.\r\n\r\nLooking forward for your feedback.\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/AlfredXiangWu/face_verification_experiment/issues/comments/253429370","html_url":"https://github.com/AlfredXiangWu/face_verification_experiment/issues/60#issuecomment-253429370","issue_url":"https://api.github.com/repos/AlfredXiangWu/face_verification_experiment/issues/60","id":253429370,"user":{"login":"westpilgrim","id":19502169,"avatar_url":"https://avatars.githubusercontent.com/u/19502169?v=3","gravatar_id":"","url":"https://api.github.com/users/westpilgrim","html_url":"https://github.com/westpilgrim","followers_url":"https://api.github.com/users/westpilgrim/followers","following_url":"https://api.github.com/users/westpilgrim/following{/other_user}","gists_url":"https://api.github.com/users/westpilgrim/gists{/gist_id}","starred_url":"https://api.github.com/users/westpilgrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westpilgrim/subscriptions","organizations_url":"https://api.github.com/users/westpilgrim/orgs","repos_url":"https://api.github.com/users/westpilgrim/repos","events_url":"https://api.github.com/users/westpilgrim/events{/privacy}","received_events_url":"https://api.github.com/users/westpilgrim/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T06:53:36Z","updated_at":"2016-10-13T06:53:36Z","body":"@dejunzhang I wonder what's the cosine similarity range of the same person  your program gives?"}}
{"actor":{"display_login":"westpilgrim"}}