{"action":"closed","number":11,"pull_request":{"url":"https://api.github.com/repos/karpathy/neuraltalk/pulls/11","id":31329573,"html_url":"https://github.com/karpathy/neuraltalk/pull/11","diff_url":"https://github.com/karpathy/neuraltalk/pull/11.diff","patch_url":"https://github.com/karpathy/neuraltalk/pull/11.patch","issue_url":"https://api.github.com/repos/karpathy/neuraltalk/issues/11","number":11,"state":"closed","locked":false,"title":"Python Caffe Features using Matlab like imresize","user":{"login":"ahmedosman","id":5000829,"avatar_url":"https://avatars.githubusercontent.com/u/5000829?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmedosman","html_url":"https://github.com/ahmedosman","followers_url":"https://api.github.com/users/ahmedosman/followers","following_url":"https://api.github.com/users/ahmedosman/following{/other_user}","gists_url":"https://api.github.com/users/ahmedosman/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmedosman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmedosman/subscriptions","organizations_url":"https://api.github.com/users/ahmedosman/orgs","repos_url":"https://api.github.com/users/ahmedosman/repos","events_url":"https://api.github.com/users/ahmedosman/events{/privacy}","received_events_url":"https://api.github.com/users/ahmedosman/received_events","type":"User","site_admin":false},"body":"Hi Andrej,\r\n\r\nI am done with the matlab like imresize implementation (imresize function below). The output from the prepare_image_batch match the output from my python preprocess_image to the 4 decimal place ( because python can store decimals to a larger precision than matlab), Attached is a Histogram of error between matlab's output prepare_image_batch image and python's output preprocess_image.\r\n![matlab_python_imresize](https://cloud.githubusercontent.com/assets/5000829/6686969/061bd092-ccaf-11e4-93ac-bc6bbb58fae6.png).\r\n\r\nMoreover I compared the final predictions from the new python script py_caffe_feat_extract.py with the new imresize in python and with caffe's imresize and compared them to matlab's prediction. Attached is a side by side histogram of error, the maximum discrepency with the new python imresize is 0.3 compared to +/-1.5 for the caffe image resize. Again I think if I limited python precision to 4 decimal place from the start ,\r\nthe residual error of 0.3 will go down to 0.  \r\n\r\n![prediction_discrepency](https://cloud.githubusercontent.com/assets/5000829/6687076/00484032-ccb0-11e4-800c-154fd1bc1a45.png)\r\n\r\n**All these results are based on Caltech 101 dataset.\r\n\r\nIf you are ok with that script, then I'll submit another pull request making the changes we agreed on earlier to py_predict_images.py script\r\n\r\n\r\n","created_at":"2015-03-17T12:17:44Z","updated_at":"2015-03-18T07:02:26Z","closed_at":"2015-03-18T07:02:26Z","merged_at":"2015-03-18T07:02:26Z","merge_commit_sha":"95faa541a4263fef328935d90be2340d8de8a2be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/karpathy/neuraltalk/pulls/11/commits","review_comments_url":"https://api.github.com/repos/karpathy/neuraltalk/pulls/11/comments","review_comment_url":"https://api.github.com/repos/karpathy/neuraltalk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/karpathy/neuraltalk/issues/11/comments","statuses_url":"https://api.github.com/repos/karpathy/neuraltalk/statuses/971942e34463af1b5fd1a0d7d66e5be7436123cc","head":{"label":"ahmedosman:py_caffe_feat_extract","ref":"py_caffe_feat_extract","sha":"971942e34463af1b5fd1a0d7d66e5be7436123cc","user":{"login":"ahmedosman","id":5000829,"avatar_url":"https://avatars.githubusercontent.com/u/5000829?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmedosman","html_url":"https://github.com/ahmedosman","followers_url":"https://api.github.com/users/ahmedosman/followers","following_url":"https://api.github.com/users/ahmedosman/following{/other_user}","gists_url":"https://api.github.com/users/ahmedosman/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmedosman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmedosman/subscriptions","organizations_url":"https://api.github.com/users/ahmedosman/orgs","repos_url":"https://api.github.com/users/ahmedosman/repos","events_url":"https://api.github.com/users/ahmedosman/events{/privacy}","received_events_url":"https://api.github.com/users/ahmedosman/received_events","type":"User","site_admin":false},"repo":{"id":31990505,"name":"neuraltalk","full_name":"ahmedosman/neuraltalk","owner":{"login":"ahmedosman","id":5000829,"avatar_url":"https://avatars.githubusercontent.com/u/5000829?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmedosman","html_url":"https://github.com/ahmedosman","followers_url":"https://api.github.com/users/ahmedosman/followers","following_url":"https://api.github.com/users/ahmedosman/following{/other_user}","gists_url":"https://api.github.com/users/ahmedosman/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmedosman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmedosman/subscriptions","organizations_url":"https://api.github.com/users/ahmedosman/orgs","repos_url":"https://api.github.com/users/ahmedosman/repos","events_url":"https://api.github.com/users/ahmedosman/events{/privacy}","received_events_url":"https://api.github.com/users/ahmedosman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahmedosman/neuraltalk","description":"NeuralTalk is a Python+numpy project for learning Multimodal Recurrent Neural Networks that describe images with sentences.","fork":true,"url":"https://api.github.com/repos/ahmedosman/neuraltalk","forks_url":"https://api.github.com/repos/ahmedosman/neuraltalk/forks","keys_url":"https://api.github.com/repos/ahmedosman/neuraltalk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahmedosman/neuraltalk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahmedosman/neuraltalk/teams","hooks_url":"https://api.github.com/repos/ahmedosman/neuraltalk/hooks","issue_events_url":"https://api.github.com/repos/ahmedosman/neuraltalk/issues/events{/number}","events_url":"https://api.github.com/repos/ahmedosman/neuraltalk/events","assignees_url":"https://api.github.com/repos/ahmedosman/neuraltalk/assignees{/user}","branches_url":"https://api.github.com/repos/ahmedosman/neuraltalk/branches{/branch}","tags_url":"https://api.github.com/repos/ahmedosman/neuraltalk/tags","blobs_url":"https://api.github.com/repos/ahmedosman/neuraltalk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahmedosman/neuraltalk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahmedosman/neuraltalk/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahmedosman/neuraltalk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahmedosman/neuraltalk/statuses/{sha}","languages_url":"https://api.github.com/repos/ahmedosman/neuraltalk/languages","stargazers_url":"https://api.github.com/repos/ahmedosman/neuraltalk/stargazers","contributors_url":"https://api.github.com/repos/ahmedosman/neuraltalk/contributors","subscribers_url":"https://api.github.com/repos/ahmedosman/neuraltalk/subscribers","subscription_url":"https://api.github.com/repos/ahmedosman/neuraltalk/subscription","commits_url":"https://api.github.com/repos/ahmedosman/neuraltalk/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahmedosman/neuraltalk/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahmedosman/neuraltalk/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahmedosman/neuraltalk/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahmedosman/neuraltalk/contents/{+path}","compare_url":"https://api.github.com/repos/ahmedosman/neuraltalk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahmedosman/neuraltalk/merges","archive_url":"https://api.github.com/repos/ahmedosman/neuraltalk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahmedosman/neuraltalk/downloads","issues_url":"https://api.github.com/repos/ahmedosman/neuraltalk/issues{/number}","pulls_url":"https://api.github.com/repos/ahmedosman/neuraltalk/pulls{/number}","milestones_url":"https://api.github.com/repos/ahmedosman/neuraltalk/milestones{/number}","notifications_url":"https://api.github.com/repos/ahmedosman/neuraltalk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahmedosman/neuraltalk/labels{/name}","releases_url":"https://api.github.com/repos/ahmedosman/neuraltalk/releases{/id}","created_at":"2015-03-11T00:58:43Z","updated_at":"2015-03-11T00:58:43Z","pushed_at":"2015-03-17T12:01:29Z","git_url":"git://github.com/ahmedosman/neuraltalk.git","ssh_url":"git@github.com:ahmedosman/neuraltalk.git","clone_url":"https://github.com/ahmedosman/neuraltalk.git","svn_url":"https://github.com/ahmedosman/neuraltalk","homepage":null,"size":5279,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"karpathy:master","ref":"master","sha":"93a771d3116240030164acc505805bf1a213ee95","user":{"login":"karpathy","id":241138,"avatar_url":"https://avatars.githubusercontent.com/u/241138?v=3","gravatar_id":"","url":"https://api.github.com/users/karpathy","html_url":"https://github.com/karpathy","followers_url":"https://api.github.com/users/karpathy/followers","following_url":"https://api.github.com/users/karpathy/following{/other_user}","gists_url":"https://api.github.com/users/karpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/karpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karpathy/subscriptions","organizations_url":"https://api.github.com/users/karpathy/orgs","repos_url":"https://api.github.com/users/karpathy/repos","events_url":"https://api.github.com/users/karpathy/events{/privacy}","received_events_url":"https://api.github.com/users/karpathy/received_events","type":"User","site_admin":false},"repo":{"id":27244649,"name":"neuraltalk","full_name":"karpathy/neuraltalk","owner":{"login":"karpathy","id":241138,"avatar_url":"https://avatars.githubusercontent.com/u/241138?v=3","gravatar_id":"","url":"https://api.github.com/users/karpathy","html_url":"https://github.com/karpathy","followers_url":"https://api.github.com/users/karpathy/followers","following_url":"https://api.github.com/users/karpathy/following{/other_user}","gists_url":"https://api.github.com/users/karpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/karpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karpathy/subscriptions","organizations_url":"https://api.github.com/users/karpathy/orgs","repos_url":"https://api.github.com/users/karpathy/repos","events_url":"https://api.github.com/users/karpathy/events{/privacy}","received_events_url":"https://api.github.com/users/karpathy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karpathy/neuraltalk","description":"NeuralTalk is a Python+numpy project for learning Multimodal Recurrent Neural Networks that describe images with sentences.","fork":false,"url":"https://api.github.com/repos/karpathy/neuraltalk","forks_url":"https://api.github.com/repos/karpathy/neuraltalk/forks","keys_url":"https://api.github.com/repos/karpathy/neuraltalk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karpathy/neuraltalk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karpathy/neuraltalk/teams","hooks_url":"https://api.github.com/repos/karpathy/neuraltalk/hooks","issue_events_url":"https://api.github.com/repos/karpathy/neuraltalk/issues/events{/number}","events_url":"https://api.github.com/repos/karpathy/neuraltalk/events","assignees_url":"https://api.github.com/repos/karpathy/neuraltalk/assignees{/user}","branches_url":"https://api.github.com/repos/karpathy/neuraltalk/branches{/branch}","tags_url":"https://api.github.com/repos/karpathy/neuraltalk/tags","blobs_url":"https://api.github.com/repos/karpathy/neuraltalk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karpathy/neuraltalk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karpathy/neuraltalk/git/refs{/sha}","trees_url":"https://api.github.com/repos/karpathy/neuraltalk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karpathy/neuraltalk/statuses/{sha}","languages_url":"https://api.github.com/repos/karpathy/neuraltalk/languages","stargazers_url":"https://api.github.com/repos/karpathy/neuraltalk/stargazers","contributors_url":"https://api.github.com/repos/karpathy/neuraltalk/contributors","subscribers_url":"https://api.github.com/repos/karpathy/neuraltalk/subscribers","subscription_url":"https://api.github.com/repos/karpathy/neuraltalk/subscription","commits_url":"https://api.github.com/repos/karpathy/neuraltalk/commits{/sha}","git_commits_url":"https://api.github.com/repos/karpathy/neuraltalk/git/commits{/sha}","comments_url":"https://api.github.com/repos/karpathy/neuraltalk/comments{/number}","issue_comment_url":"https://api.github.com/repos/karpathy/neuraltalk/issues/comments{/number}","contents_url":"https://api.github.com/repos/karpathy/neuraltalk/contents/{+path}","compare_url":"https://api.github.com/repos/karpathy/neuraltalk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karpathy/neuraltalk/merges","archive_url":"https://api.github.com/repos/karpathy/neuraltalk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karpathy/neuraltalk/downloads","issues_url":"https://api.github.com/repos/karpathy/neuraltalk/issues{/number}","pulls_url":"https://api.github.com/repos/karpathy/neuraltalk/pulls{/number}","milestones_url":"https://api.github.com/repos/karpathy/neuraltalk/milestones{/number}","notifications_url":"https://api.github.com/repos/karpathy/neuraltalk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karpathy/neuraltalk/labels{/name}","releases_url":"https://api.github.com/repos/karpathy/neuraltalk/releases{/id}","created_at":"2014-11-27T23:22:39Z","updated_at":"2015-03-18T01:27:19Z","pushed_at":"2015-03-18T07:02:26Z","git_url":"git://github.com/karpathy/neuraltalk.git","ssh_url":"git@github.com:karpathy/neuraltalk.git","clone_url":"https://github.com/karpathy/neuraltalk.git","svn_url":"https://github.com/karpathy/neuraltalk","homepage":null,"size":5359,"stargazers_count":2134,"watchers_count":2134,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":377,"mirror_url":null,"open_issues_count":4,"forks":377,"open_issues":4,"watchers":2134,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/karpathy/neuraltalk/pulls/11"},"html":{"href":"https://github.com/karpathy/neuraltalk/pull/11"},"issue":{"href":"https://api.github.com/repos/karpathy/neuraltalk/issues/11"},"comments":{"href":"https://api.github.com/repos/karpathy/neuraltalk/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/karpathy/neuraltalk/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/karpathy/neuraltalk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/karpathy/neuraltalk/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/karpathy/neuraltalk/statuses/971942e34463af1b5fd1a0d7d66e5be7436123cc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"karpathy","id":241138,"avatar_url":"https://avatars.githubusercontent.com/u/241138?v=3","gravatar_id":"","url":"https://api.github.com/users/karpathy","html_url":"https://github.com/karpathy","followers_url":"https://api.github.com/users/karpathy/followers","following_url":"https://api.github.com/users/karpathy/following{/other_user}","gists_url":"https://api.github.com/users/karpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/karpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karpathy/subscriptions","organizations_url":"https://api.github.com/users/karpathy/orgs","repos_url":"https://api.github.com/users/karpathy/repos","events_url":"https://api.github.com/users/karpathy/events{/privacy}","received_events_url":"https://api.github.com/users/karpathy/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":262,"deletions":0,"changed_files":1}}