{"action":"created","comment":{"url":"https://api.github.com/repos/mila-udem/fuel/pulls/comments/34713665","id":34713665,"diff_hunk":"@@ -0,0 +1,227 @@\n+from abc import ABCMeta\n+from io import BytesIO\n+from PIL import Image\n+\n+import numpy\n+from six import PY3, add_metaclass\n+\n+from ._image import window_batch_bchw\n+from . import ExpectsAxisLabels, SourcewiseTransformer\n+from .. import config\n+\n+\n+@add_metaclass(ABCMeta)","path":"fuel/transformers/image.py","position":13,"original_position":13,"commit_id":"93ecaf220a8778b5be28ddd5bd3e08dfe9b45091","original_commit_id":"8c7efac7df593e719d18d83f2dd496677a3cfb74","user":{"login":"dwf","id":60206,"avatar_url":"https://avatars.githubusercontent.com/u/60206?v=3","gravatar_id":"","url":"https://api.github.com/users/dwf","html_url":"https://github.com/dwf","followers_url":"https://api.github.com/users/dwf/followers","following_url":"https://api.github.com/users/dwf/following{/other_user}","gists_url":"https://api.github.com/users/dwf/gists{/gist_id}","starred_url":"https://api.github.com/users/dwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwf/subscriptions","organizations_url":"https://api.github.com/users/dwf/orgs","repos_url":"https://api.github.com/users/dwf/repos","events_url":"https://api.github.com/users/dwf/events{/privacy}","received_events_url":"https://api.github.com/users/dwf/received_events","type":"User","site_admin":false},"body":"Nevermind, I don't know why that was there. cdd7290 ","created_at":"2015-07-15T18:41:58Z","updated_at":"2015-07-15T18:41:58Z","html_url":"https://github.com/mila-udem/fuel/pull/196#discussion_r34713665","pull_request_url":"https://api.github.com/repos/mila-udem/fuel/pulls/196","_links":{"self":{"href":"https://api.github.com/repos/mila-udem/fuel/pulls/comments/34713665"},"html":{"href":"https://github.com/mila-udem/fuel/pull/196#discussion_r34713665"},"pull_request":{"href":"https://api.github.com/repos/mila-udem/fuel/pulls/196"}}},"pull_request":{"url":"https://api.github.com/repos/mila-udem/fuel/pulls/196","id":39961553,"html_url":"https://github.com/mila-udem/fuel/pull/196","diff_url":"https://github.com/mila-udem/fuel/pull/196.diff","patch_url":"https://github.com/mila-udem/fuel/pull/196.patch","issue_url":"https://api.github.com/repos/mila-udem/fuel/issues/196","number":196,"state":"open","locked":false,"title":"WIP: Image transformers","user":{"login":"dwf","id":60206,"avatar_url":"https://avatars.githubusercontent.com/u/60206?v=3","gravatar_id":"","url":"https://api.github.com/users/dwf","html_url":"https://github.com/dwf","followers_url":"https://api.github.com/users/dwf/followers","following_url":"https://api.github.com/users/dwf/following{/other_user}","gists_url":"https://api.github.com/users/dwf/gists{/gist_id}","starred_url":"https://api.github.com/users/dwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwf/subscriptions","organizations_url":"https://api.github.com/users/dwf/orgs","repos_url":"https://api.github.com/users/dwf/repos","events_url":"https://api.github.com/users/dwf/events{/privacy}","received_events_url":"https://api.github.com/users/dwf/received_events","type":"User","site_admin":false},"body":"Includes three transformers for\r\n\r\n* Reading streams of images represented as JPEG etc. bytes with PIL\r\n* Upscaling individual images to a minimum width and height if necessary\r\n* Doing random fixed-size crops\r\n\r\nTests forthcoming.","created_at":"2015-07-14T20:55:51Z","updated_at":"2015-07-15T18:41:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8d22af16f575fa1d8fc9092e3ec5a3999a2f7cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mila-udem/fuel/pulls/196/commits","review_comments_url":"https://api.github.com/repos/mila-udem/fuel/pulls/196/comments","review_comment_url":"https://api.github.com/repos/mila-udem/fuel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mila-udem/fuel/issues/196/comments","statuses_url":"https://api.github.com/repos/mila-udem/fuel/statuses/93ecaf220a8778b5be28ddd5bd3e08dfe9b45091","head":{"label":"dwf:image_transformers","ref":"image_transformers","sha":"93ecaf220a8778b5be28ddd5bd3e08dfe9b45091","user":{"login":"dwf","id":60206,"avatar_url":"https://avatars.githubusercontent.com/u/60206?v=3","gravatar_id":"","url":"https://api.github.com/users/dwf","html_url":"https://github.com/dwf","followers_url":"https://api.github.com/users/dwf/followers","following_url":"https://api.github.com/users/dwf/following{/other_user}","gists_url":"https://api.github.com/users/dwf/gists{/gist_id}","starred_url":"https://api.github.com/users/dwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwf/subscriptions","organizations_url":"https://api.github.com/users/dwf/orgs","repos_url":"https://api.github.com/users/dwf/repos","events_url":"https://api.github.com/users/dwf/events{/privacy}","received_events_url":"https://api.github.com/users/dwf/received_events","type":"User","site_admin":false},"repo":{"id":31439995,"name":"fuel","full_name":"dwf/fuel","owner":{"login":"dwf","id":60206,"avatar_url":"https://avatars.githubusercontent.com/u/60206?v=3","gravatar_id":"","url":"https://api.github.com/users/dwf","html_url":"https://github.com/dwf","followers_url":"https://api.github.com/users/dwf/followers","following_url":"https://api.github.com/users/dwf/following{/other_user}","gists_url":"https://api.github.com/users/dwf/gists{/gist_id}","starred_url":"https://api.github.com/users/dwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwf/subscriptions","organizations_url":"https://api.github.com/users/dwf/orgs","repos_url":"https://api.github.com/users/dwf/repos","events_url":"https://api.github.com/users/dwf/events{/privacy}","received_events_url":"https://api.github.com/users/dwf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dwf/fuel","description":"A data pipeline framework for machine learning","fork":true,"url":"https://api.github.com/repos/dwf/fuel","forks_url":"https://api.github.com/repos/dwf/fuel/forks","keys_url":"https://api.github.com/repos/dwf/fuel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwf/fuel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwf/fuel/teams","hooks_url":"https://api.github.com/repos/dwf/fuel/hooks","issue_events_url":"https://api.github.com/repos/dwf/fuel/issues/events{/number}","events_url":"https://api.github.com/repos/dwf/fuel/events","assignees_url":"https://api.github.com/repos/dwf/fuel/assignees{/user}","branches_url":"https://api.github.com/repos/dwf/fuel/branches{/branch}","tags_url":"https://api.github.com/repos/dwf/fuel/tags","blobs_url":"https://api.github.com/repos/dwf/fuel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwf/fuel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwf/fuel/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwf/fuel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwf/fuel/statuses/{sha}","languages_url":"https://api.github.com/repos/dwf/fuel/languages","stargazers_url":"https://api.github.com/repos/dwf/fuel/stargazers","contributors_url":"https://api.github.com/repos/dwf/fuel/contributors","subscribers_url":"https://api.github.com/repos/dwf/fuel/subscribers","subscription_url":"https://api.github.com/repos/dwf/fuel/subscription","commits_url":"https://api.github.com/repos/dwf/fuel/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwf/fuel/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwf/fuel/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwf/fuel/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwf/fuel/contents/{+path}","compare_url":"https://api.github.com/repos/dwf/fuel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwf/fuel/merges","archive_url":"https://api.github.com/repos/dwf/fuel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwf/fuel/downloads","issues_url":"https://api.github.com/repos/dwf/fuel/issues{/number}","pulls_url":"https://api.github.com/repos/dwf/fuel/pulls{/number}","milestones_url":"https://api.github.com/repos/dwf/fuel/milestones{/number}","notifications_url":"https://api.github.com/repos/dwf/fuel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwf/fuel/labels{/name}","releases_url":"https://api.github.com/repos/dwf/fuel/releases{/id}","created_at":"2015-02-27T21:28:58Z","updated_at":"2015-04-27T04:57:41Z","pushed_at":"2015-07-15T18:32:47Z","git_url":"git://github.com/dwf/fuel.git","ssh_url":"git@github.com:dwf/fuel.git","clone_url":"https://github.com/dwf/fuel.git","svn_url":"https://github.com/dwf/fuel","homepage":null,"size":943,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mila-udem:master","ref":"master","sha":"356aba5241e28d890f6c06e4ab773285fb09f969","user":{"login":"mila-udem","id":11724251,"avatar_url":"https://avatars.githubusercontent.com/u/11724251?v=3","gravatar_id":"","url":"https://api.github.com/users/mila-udem","html_url":"https://github.com/mila-udem","followers_url":"https://api.github.com/users/mila-udem/followers","following_url":"https://api.github.com/users/mila-udem/following{/other_user}","gists_url":"https://api.github.com/users/mila-udem/gists{/gist_id}","starred_url":"https://api.github.com/users/mila-udem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mila-udem/subscriptions","organizations_url":"https://api.github.com/users/mila-udem/orgs","repos_url":"https://api.github.com/users/mila-udem/repos","events_url":"https://api.github.com/users/mila-udem/events{/privacy}","received_events_url":"https://api.github.com/users/mila-udem/received_events","type":"Organization","site_admin":false},"repo":{"id":30722866,"name":"fuel","full_name":"mila-udem/fuel","owner":{"login":"mila-udem","id":11724251,"avatar_url":"https://avatars.githubusercontent.com/u/11724251?v=3","gravatar_id":"","url":"https://api.github.com/users/mila-udem","html_url":"https://github.com/mila-udem","followers_url":"https://api.github.com/users/mila-udem/followers","following_url":"https://api.github.com/users/mila-udem/following{/other_user}","gists_url":"https://api.github.com/users/mila-udem/gists{/gist_id}","starred_url":"https://api.github.com/users/mila-udem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mila-udem/subscriptions","organizations_url":"https://api.github.com/users/mila-udem/orgs","repos_url":"https://api.github.com/users/mila-udem/repos","events_url":"https://api.github.com/users/mila-udem/events{/privacy}","received_events_url":"https://api.github.com/users/mila-udem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mila-udem/fuel","description":"A data pipeline framework for machine learning","fork":false,"url":"https://api.github.com/repos/mila-udem/fuel","forks_url":"https://api.github.com/repos/mila-udem/fuel/forks","keys_url":"https://api.github.com/repos/mila-udem/fuel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mila-udem/fuel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mila-udem/fuel/teams","hooks_url":"https://api.github.com/repos/mila-udem/fuel/hooks","issue_events_url":"https://api.github.com/repos/mila-udem/fuel/issues/events{/number}","events_url":"https://api.github.com/repos/mila-udem/fuel/events","assignees_url":"https://api.github.com/repos/mila-udem/fuel/assignees{/user}","branches_url":"https://api.github.com/repos/mila-udem/fuel/branches{/branch}","tags_url":"https://api.github.com/repos/mila-udem/fuel/tags","blobs_url":"https://api.github.com/repos/mila-udem/fuel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mila-udem/fuel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mila-udem/fuel/git/refs{/sha}","trees_url":"https://api.github.com/repos/mila-udem/fuel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mila-udem/fuel/statuses/{sha}","languages_url":"https://api.github.com/repos/mila-udem/fuel/languages","stargazers_url":"https://api.github.com/repos/mila-udem/fuel/stargazers","contributors_url":"https://api.github.com/repos/mila-udem/fuel/contributors","subscribers_url":"https://api.github.com/repos/mila-udem/fuel/subscribers","subscription_url":"https://api.github.com/repos/mila-udem/fuel/subscription","commits_url":"https://api.github.com/repos/mila-udem/fuel/commits{/sha}","git_commits_url":"https://api.github.com/repos/mila-udem/fuel/git/commits{/sha}","comments_url":"https://api.github.com/repos/mila-udem/fuel/comments{/number}","issue_comment_url":"https://api.github.com/repos/mila-udem/fuel/issues/comments{/number}","contents_url":"https://api.github.com/repos/mila-udem/fuel/contents/{+path}","compare_url":"https://api.github.com/repos/mila-udem/fuel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mila-udem/fuel/merges","archive_url":"https://api.github.com/repos/mila-udem/fuel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mila-udem/fuel/downloads","issues_url":"https://api.github.com/repos/mila-udem/fuel/issues{/number}","pulls_url":"https://api.github.com/repos/mila-udem/fuel/pulls{/number}","milestones_url":"https://api.github.com/repos/mila-udem/fuel/milestones{/number}","notifications_url":"https://api.github.com/repos/mila-udem/fuel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mila-udem/fuel/labels{/name}","releases_url":"https://api.github.com/repos/mila-udem/fuel/releases{/id}","created_at":"2015-02-12T20:42:44Z","updated_at":"2015-07-14T19:46:00Z","pushed_at":"2015-07-15T18:32:48Z","git_url":"git://github.com/mila-udem/fuel.git","ssh_url":"git@github.com:mila-udem/fuel.git","clone_url":"https://github.com/mila-udem/fuel.git","svn_url":"https://github.com/mila-udem/fuel","homepage":null,"size":2502,"stargazers_count":124,"watchers_count":124,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":40,"forks":64,"open_issues":40,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mila-udem/fuel/pulls/196"},"html":{"href":"https://github.com/mila-udem/fuel/pull/196"},"issue":{"href":"https://api.github.com/repos/mila-udem/fuel/issues/196"},"comments":{"href":"https://api.github.com/repos/mila-udem/fuel/issues/196/comments"},"review_comments":{"href":"https://api.github.com/repos/mila-udem/fuel/pulls/196/comments"},"review_comment":{"href":"https://api.github.com/repos/mila-udem/fuel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mila-udem/fuel/pulls/196/commits"},"statuses":{"href":"https://api.github.com/repos/mila-udem/fuel/statuses/93ecaf220a8778b5be28ddd5bd3e08dfe9b45091"}}}}