{"action":"created","comment":{"url":"https://api.github.com/repos/dmlc/mxnet/pulls/comments/94202572","pull_request_review_id":14733531,"id":94202572,"diff_hunk":"@@ -185,6 +183,10 @@ def _data_augmentation(self, data, label):\n         else:\n             interp_methods = [cv2.INTER_LINEAR]\n         interp_method = interp_methods[int(np.random.uniform(0, 1) * len(interp_methods))]\n-        data = resize(data, self._data_shape, interp_method)\n-        data = transform(data, self._mean_pixels)\n+        data = mx.img.imresize(data, self._data_shape[0], self._data_shape[1], interp_method)\n+        data = mx.nd.transpose(data, (2,0,1))\n+        data = data.astype('float32')\n+        data[0] -= self._mean_pixels[0]\n+        data[1] -= self._mean_pixels[1]\n+        data[2] -= self._mean_pixels[2]","path":"example/ssd/dataset/iterator.py","position":78,"original_position":78,"commit_id":"da968a64e4bf1607ee145d540363531eeae4ac97","original_commit_id":"da968a64e4bf1607ee145d540363531eeae4ac97","user":{"login":"howard0su","id":766788,"avatar_url":"https://avatars.githubusercontent.com/u/766788?v=3","gravatar_id":"","url":"https://api.github.com/users/howard0su","html_url":"https://github.com/howard0su","followers_url":"https://api.github.com/users/howard0su/followers","following_url":"https://api.github.com/users/howard0su/following{/other_user}","gists_url":"https://api.github.com/users/howard0su/gists{/gist_id}","starred_url":"https://api.github.com/users/howard0su/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howard0su/subscriptions","organizations_url":"https://api.github.com/users/howard0su/orgs","repos_url":"https://api.github.com/users/howard0su/repos","events_url":"https://api.github.com/users/howard0su/events{/privacy}","received_events_url":"https://api.github.com/users/howard0su/received_events","type":"User","site_admin":false},"body":"I still cannot do (3,244,244) - (3,1,1). is this a bug? If so, i can go check the code to see if i can fix it.","created_at":"2016-12-30T04:45:47Z","updated_at":"2016-12-30T04:46:19Z","html_url":"https://github.com/dmlc/mxnet/pull/4442#discussion_r94202572","pull_request_url":"https://api.github.com/repos/dmlc/mxnet/pulls/4442","_links":{"self":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/comments/94202572"},"html":{"href":"https://github.com/dmlc/mxnet/pull/4442#discussion_r94202572"},"pull_request":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/4442"}}},"pull_request":{"url":"https://api.github.com/repos/dmlc/mxnet/pulls/4442","id":99722135,"html_url":"https://github.com/dmlc/mxnet/pull/4442","diff_url":"https://github.com/dmlc/mxnet/pull/4442.diff","patch_url":"https://github.com/dmlc/mxnet/pull/4442.patch","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/4442","number":4442,"state":"open","locked":false,"title":"Convert iterator to mx.img API","user":{"login":"howard0su","id":766788,"avatar_url":"https://avatars.githubusercontent.com/u/766788?v=3","gravatar_id":"","url":"https://api.github.com/users/howard0su","html_url":"https://github.com/howard0su","followers_url":"https://api.github.com/users/howard0su/followers","following_url":"https://api.github.com/users/howard0su/following{/other_user}","gists_url":"https://api.github.com/users/howard0su/gists{/gist_id}","starred_url":"https://api.github.com/users/howard0su/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howard0su/subscriptions","organizations_url":"https://api.github.com/users/howard0su/orgs","repos_url":"https://api.github.com/users/howard0su/repos","events_url":"https://api.github.com/users/howard0su/events{/privacy}","received_events_url":"https://api.github.com/users/howard0su/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-30T04:43:47Z","updated_at":"2016-12-30T04:46:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e882f3e94aebbe837781f8dae775e142eac8f7f8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dmlc/mxnet/pulls/4442/commits","review_comments_url":"https://api.github.com/repos/dmlc/mxnet/pulls/4442/comments","review_comment_url":"https://api.github.com/repos/dmlc/mxnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/4442/comments","statuses_url":"https://api.github.com/repos/dmlc/mxnet/statuses/da968a64e4bf1607ee145d540363531eeae4ac97","head":{"label":"howard0su:nnvm_mximg","ref":"nnvm_mximg","sha":"da968a64e4bf1607ee145d540363531eeae4ac97","user":{"login":"howard0su","id":766788,"avatar_url":"https://avatars.githubusercontent.com/u/766788?v=3","gravatar_id":"","url":"https://api.github.com/users/howard0su","html_url":"https://github.com/howard0su","followers_url":"https://api.github.com/users/howard0su/followers","following_url":"https://api.github.com/users/howard0su/following{/other_user}","gists_url":"https://api.github.com/users/howard0su/gists{/gist_id}","starred_url":"https://api.github.com/users/howard0su/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howard0su/subscriptions","organizations_url":"https://api.github.com/users/howard0su/orgs","repos_url":"https://api.github.com/users/howard0su/repos","events_url":"https://api.github.com/users/howard0su/events{/privacy}","received_events_url":"https://api.github.com/users/howard0su/received_events","type":"User","site_admin":false},"repo":{"id":74723562,"name":"mxnet","full_name":"howard0su/mxnet","owner":{"login":"howard0su","id":766788,"avatar_url":"https://avatars.githubusercontent.com/u/766788?v=3","gravatar_id":"","url":"https://api.github.com/users/howard0su","html_url":"https://github.com/howard0su","followers_url":"https://api.github.com/users/howard0su/followers","following_url":"https://api.github.com/users/howard0su/following{/other_user}","gists_url":"https://api.github.com/users/howard0su/gists{/gist_id}","starred_url":"https://api.github.com/users/howard0su/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howard0su/subscriptions","organizations_url":"https://api.github.com/users/howard0su/orgs","repos_url":"https://api.github.com/users/howard0su/repos","events_url":"https://api.github.com/users/howard0su/events{/privacy}","received_events_url":"https://api.github.com/users/howard0su/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/howard0su/mxnet","description":"Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more","fork":true,"url":"https://api.github.com/repos/howard0su/mxnet","forks_url":"https://api.github.com/repos/howard0su/mxnet/forks","keys_url":"https://api.github.com/repos/howard0su/mxnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/howard0su/mxnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/howard0su/mxnet/teams","hooks_url":"https://api.github.com/repos/howard0su/mxnet/hooks","issue_events_url":"https://api.github.com/repos/howard0su/mxnet/issues/events{/number}","events_url":"https://api.github.com/repos/howard0su/mxnet/events","assignees_url":"https://api.github.com/repos/howard0su/mxnet/assignees{/user}","branches_url":"https://api.github.com/repos/howard0su/mxnet/branches{/branch}","tags_url":"https://api.github.com/repos/howard0su/mxnet/tags","blobs_url":"https://api.github.com/repos/howard0su/mxnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/howard0su/mxnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/howard0su/mxnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/howard0su/mxnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/howard0su/mxnet/statuses/{sha}","languages_url":"https://api.github.com/repos/howard0su/mxnet/languages","stargazers_url":"https://api.github.com/repos/howard0su/mxnet/stargazers","contributors_url":"https://api.github.com/repos/howard0su/mxnet/contributors","subscribers_url":"https://api.github.com/repos/howard0su/mxnet/subscribers","subscription_url":"https://api.github.com/repos/howard0su/mxnet/subscription","commits_url":"https://api.github.com/repos/howard0su/mxnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/howard0su/mxnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/howard0su/mxnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/howard0su/mxnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/howard0su/mxnet/contents/{+path}","compare_url":"https://api.github.com/repos/howard0su/mxnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/howard0su/mxnet/merges","archive_url":"https://api.github.com/repos/howard0su/mxnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/howard0su/mxnet/downloads","issues_url":"https://api.github.com/repos/howard0su/mxnet/issues{/number}","pulls_url":"https://api.github.com/repos/howard0su/mxnet/pulls{/number}","milestones_url":"https://api.github.com/repos/howard0su/mxnet/milestones{/number}","notifications_url":"https://api.github.com/repos/howard0su/mxnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/howard0su/mxnet/labels{/name}","releases_url":"https://api.github.com/repos/howard0su/mxnet/releases{/id}","deployments_url":"https://api.github.com/repos/howard0su/mxnet/deployments","created_at":"2016-11-25T03:45:45Z","updated_at":"2016-11-25T03:45:48Z","pushed_at":"2016-12-30T04:43:23Z","git_url":"git://github.com/howard0su/mxnet.git","ssh_url":"git@github.com:howard0su/mxnet.git","clone_url":"https://github.com/howard0su/mxnet.git","svn_url":"https://github.com/howard0su/mxnet","homepage":"http://mxnet.io","size":13109,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"dmlc:master","ref":"master","sha":"21409acd2c09806471300a51f6818cce70761ca8","user":{"login":"dmlc","id":11508361,"avatar_url":"https://avatars.githubusercontent.com/u/11508361?v=3","gravatar_id":"","url":"https://api.github.com/users/dmlc","html_url":"https://github.com/dmlc","followers_url":"https://api.github.com/users/dmlc/followers","following_url":"https://api.github.com/users/dmlc/following{/other_user}","gists_url":"https://api.github.com/users/dmlc/gists{/gist_id}","starred_url":"https://api.github.com/users/dmlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmlc/subscriptions","organizations_url":"https://api.github.com/users/dmlc/orgs","repos_url":"https://api.github.com/users/dmlc/repos","events_url":"https://api.github.com/users/dmlc/events{/privacy}","received_events_url":"https://api.github.com/users/dmlc/received_events","type":"Organization","site_admin":false},"repo":{"id":34864402,"name":"mxnet","full_name":"dmlc/mxnet","owner":{"login":"dmlc","id":11508361,"avatar_url":"https://avatars.githubusercontent.com/u/11508361?v=3","gravatar_id":"","url":"https://api.github.com/users/dmlc","html_url":"https://github.com/dmlc","followers_url":"https://api.github.com/users/dmlc/followers","following_url":"https://api.github.com/users/dmlc/following{/other_user}","gists_url":"https://api.github.com/users/dmlc/gists{/gist_id}","starred_url":"https://api.github.com/users/dmlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmlc/subscriptions","organizations_url":"https://api.github.com/users/dmlc/orgs","repos_url":"https://api.github.com/users/dmlc/repos","events_url":"https://api.github.com/users/dmlc/events{/privacy}","received_events_url":"https://api.github.com/users/dmlc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmlc/mxnet","description":"Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more","fork":false,"url":"https://api.github.com/repos/dmlc/mxnet","forks_url":"https://api.github.com/repos/dmlc/mxnet/forks","keys_url":"https://api.github.com/repos/dmlc/mxnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmlc/mxnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmlc/mxnet/teams","hooks_url":"https://api.github.com/repos/dmlc/mxnet/hooks","issue_events_url":"https://api.github.com/repos/dmlc/mxnet/issues/events{/number}","events_url":"https://api.github.com/repos/dmlc/mxnet/events","assignees_url":"https://api.github.com/repos/dmlc/mxnet/assignees{/user}","branches_url":"https://api.github.com/repos/dmlc/mxnet/branches{/branch}","tags_url":"https://api.github.com/repos/dmlc/mxnet/tags","blobs_url":"https://api.github.com/repos/dmlc/mxnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmlc/mxnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmlc/mxnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmlc/mxnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmlc/mxnet/statuses/{sha}","languages_url":"https://api.github.com/repos/dmlc/mxnet/languages","stargazers_url":"https://api.github.com/repos/dmlc/mxnet/stargazers","contributors_url":"https://api.github.com/repos/dmlc/mxnet/contributors","subscribers_url":"https://api.github.com/repos/dmlc/mxnet/subscribers","subscription_url":"https://api.github.com/repos/dmlc/mxnet/subscription","commits_url":"https://api.github.com/repos/dmlc/mxnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmlc/mxnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmlc/mxnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmlc/mxnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmlc/mxnet/contents/{+path}","compare_url":"https://api.github.com/repos/dmlc/mxnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmlc/mxnet/merges","archive_url":"https://api.github.com/repos/dmlc/mxnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmlc/mxnet/downloads","issues_url":"https://api.github.com/repos/dmlc/mxnet/issues{/number}","pulls_url":"https://api.github.com/repos/dmlc/mxnet/pulls{/number}","milestones_url":"https://api.github.com/repos/dmlc/mxnet/milestones{/number}","notifications_url":"https://api.github.com/repos/dmlc/mxnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmlc/mxnet/labels{/name}","releases_url":"https://api.github.com/repos/dmlc/mxnet/releases{/id}","deployments_url":"https://api.github.com/repos/dmlc/mxnet/deployments","created_at":"2015-04-30T16:21:15Z","updated_at":"2016-12-30T01:59:32Z","pushed_at":"2016-12-30T04:43:48Z","git_url":"git://github.com/dmlc/mxnet.git","ssh_url":"git@github.com:dmlc/mxnet.git","clone_url":"https://github.com/dmlc/mxnet.git","svn_url":"https://github.com/dmlc/mxnet","homepage":"http://mxnet.io","size":12681,"stargazers_count":7357,"watchers_count":7357,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2726,"mirror_url":null,"open_issues_count":985,"forks":2726,"open_issues":985,"watchers":7357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/4442"},"html":{"href":"https://github.com/dmlc/mxnet/pull/4442"},"issue":{"href":"https://api.github.com/repos/dmlc/mxnet/issues/4442"},"comments":{"href":"https://api.github.com/repos/dmlc/mxnet/issues/4442/comments"},"review_comments":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/4442/comments"},"review_comment":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmlc/mxnet/pulls/4442/commits"},"statuses":{"href":"https://api.github.com/repos/dmlc/mxnet/statuses/da968a64e4bf1607ee145d540363531eeae4ac97"}}}}
{"actor":{"display_login":"howard0su"}}