{"action":"created","comment":{"url":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/comments/200875338","pull_request_review_id":135269398,"id":200875338,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDg3NTMzOA==","diff_hunk":"@@ -30,6 +30,17 @@ def __init__(self, bigdl_type=\"float\", *args):\n         super(ImagePreprocessing, self).__init__(bigdl_type, *args)\n \n \n+class ImageBytesToMat(ImagePreprocessing):\n+    \"\"\"\n+    Transform byte array(original image file in byte) to OpenCVMat\n+    :param byte_key key that maps byte array\n+    :param image_codec specifying the color type of a loaded image, same as in OpenCV.imread.\n+     By default is Imgcodecs.CV_LOAD_IMAGE_UNCHANGED\n+    \"\"\"\n+    def __init__(self, byte_key=\"bytes\", image_codec=-1, bigdl_type=\"float\"):","path":"pyzoo/zoo/feature/image/imagePreprocessing.py","position":11,"original_position":11,"commit_id":"d29b4cbffb1fb22a9fcfa85e1da27118ae70ddf1","original_commit_id":"d29b4cbffb1fb22a9fcfa85e1da27118ae70ddf1","user":{"login":"hkvision","id":21994046,"node_id":"MDQ6VXNlcjIxOTk0MDQ2","avatar_url":"https://avatars2.githubusercontent.com/u/21994046?v=4","gravatar_id":"","url":"https://api.github.com/users/hkvision","html_url":"https://github.com/hkvision","followers_url":"https://api.github.com/users/hkvision/followers","following_url":"https://api.github.com/users/hkvision/following{/other_user}","gists_url":"https://api.github.com/users/hkvision/gists{/gist_id}","starred_url":"https://api.github.com/users/hkvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkvision/subscriptions","organizations_url":"https://api.github.com/users/hkvision/orgs","repos_url":"https://api.github.com/users/hkvision/repos","events_url":"https://api.github.com/users/hkvision/events{/privacy}","received_events_url":"https://api.github.com/users/hkvision/received_events","type":"User","site_admin":false},"body":"@dding3 Any comment for what image_codec mapped to python?","created_at":"2018-07-09T03:45:39Z","updated_at":"2018-07-09T03:45:39Z","html_url":"https://github.com/intel-analytics/analytics-zoo/pull/332#discussion_r200875338","pull_request_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/332","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/comments/200875338"},"html":{"href":"https://github.com/intel-analytics/analytics-zoo/pull/332#discussion_r200875338"},"pull_request":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/332"}}},"pull_request":{"url":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/332","id":192375749,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMzc1NzQ5","html_url":"https://github.com/intel-analytics/analytics-zoo/pull/332","diff_url":"https://github.com/intel-analytics/analytics-zoo/pull/332.diff","patch_url":"https://github.com/intel-analytics/analytics-zoo/pull/332.patch","issue_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/issues/332","number":332,"state":"open","locked":false,"title":"Support ImageSet in fit","user":{"login":"hkvision","id":21994046,"node_id":"MDQ6VXNlcjIxOTk0MDQ2","avatar_url":"https://avatars2.githubusercontent.com/u/21994046?v=4","gravatar_id":"","url":"https://api.github.com/users/hkvision","html_url":"https://github.com/hkvision","followers_url":"https://api.github.com/users/hkvision/followers","following_url":"https://api.github.com/users/hkvision/following{/other_user}","gists_url":"https://api.github.com/users/hkvision/gists{/gist_id}","starred_url":"https://api.github.com/users/hkvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkvision/subscriptions","organizations_url":"https://api.github.com/users/hkvision/orgs","repos_url":"https://api.github.com/users/hkvision/repos","events_url":"https://api.github.com/users/hkvision/events{/privacy}","received_events_url":"https://api.github.com/users/hkvision/received_events","type":"User","site_admin":false},"body":"Fix https://github.com/intel-analytics/zoo/issues/270\r\n\r\ncc @dding3 @jenniew @jason-dai \r\n\r\nfit accepts ImageSet as data.\r\nAlso adds a missing unit test from 0-based-label PR.","created_at":"2018-06-04T11:19:33Z","updated_at":"2018-07-09T03:45:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9df29e34ad53c4140c0c6f2d6bde814b618ebee","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jason-dai","id":1931082,"node_id":"MDQ6VXNlcjE5MzEwODI=","avatar_url":"https://avatars3.githubusercontent.com/u/1931082?v=4","gravatar_id":"","url":"https://api.github.com/users/jason-dai","html_url":"https://github.com/jason-dai","followers_url":"https://api.github.com/users/jason-dai/followers","following_url":"https://api.github.com/users/jason-dai/following{/other_user}","gists_url":"https://api.github.com/users/jason-dai/gists{/gist_id}","starred_url":"https://api.github.com/users/jason-dai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jason-dai/subscriptions","organizations_url":"https://api.github.com/users/jason-dai/orgs","repos_url":"https://api.github.com/users/jason-dai/repos","events_url":"https://api.github.com/users/jason-dai/events{/privacy}","received_events_url":"https://api.github.com/users/jason-dai/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/332/commits","review_comments_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/332/comments","review_comment_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/issues/332/comments","statuses_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/statuses/d29b4cbffb1fb22a9fcfa85e1da27118ae70ddf1","head":{"label":"hkvision:fit-imageset","ref":"fit-imageset","sha":"d29b4cbffb1fb22a9fcfa85e1da27118ae70ddf1","user":{"login":"hkvision","id":21994046,"node_id":"MDQ6VXNlcjIxOTk0MDQ2","avatar_url":"https://avatars2.githubusercontent.com/u/21994046?v=4","gravatar_id":"","url":"https://api.github.com/users/hkvision","html_url":"https://github.com/hkvision","followers_url":"https://api.github.com/users/hkvision/followers","following_url":"https://api.github.com/users/hkvision/following{/other_user}","gists_url":"https://api.github.com/users/hkvision/gists{/gist_id}","starred_url":"https://api.github.com/users/hkvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkvision/subscriptions","organizations_url":"https://api.github.com/users/hkvision/orgs","repos_url":"https://api.github.com/users/hkvision/repos","events_url":"https://api.github.com/users/hkvision/events{/privacy}","received_events_url":"https://api.github.com/users/hkvision/received_events","type":"User","site_admin":false},"repo":{"id":132561768,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1NjE3Njg=","name":"analytics-zoo","full_name":"hkvision/analytics-zoo","owner":{"login":"hkvision","id":21994046,"node_id":"MDQ6VXNlcjIxOTk0MDQ2","avatar_url":"https://avatars2.githubusercontent.com/u/21994046?v=4","gravatar_id":"","url":"https://api.github.com/users/hkvision","html_url":"https://github.com/hkvision","followers_url":"https://api.github.com/users/hkvision/followers","following_url":"https://api.github.com/users/hkvision/following{/other_user}","gists_url":"https://api.github.com/users/hkvision/gists{/gist_id}","starred_url":"https://api.github.com/users/hkvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkvision/subscriptions","organizations_url":"https://api.github.com/users/hkvision/orgs","repos_url":"https://api.github.com/users/hkvision/repos","events_url":"https://api.github.com/users/hkvision/events{/privacy}","received_events_url":"https://api.github.com/users/hkvision/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hkvision/analytics-zoo","description":"Analytics + AI Platform for Apache Spark and BigDL","fork":true,"url":"https://api.github.com/repos/hkvision/analytics-zoo","forks_url":"https://api.github.com/repos/hkvision/analytics-zoo/forks","keys_url":"https://api.github.com/repos/hkvision/analytics-zoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hkvision/analytics-zoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hkvision/analytics-zoo/teams","hooks_url":"https://api.github.com/repos/hkvision/analytics-zoo/hooks","issue_events_url":"https://api.github.com/repos/hkvision/analytics-zoo/issues/events{/number}","events_url":"https://api.github.com/repos/hkvision/analytics-zoo/events","assignees_url":"https://api.github.com/repos/hkvision/analytics-zoo/assignees{/user}","branches_url":"https://api.github.com/repos/hkvision/analytics-zoo/branches{/branch}","tags_url":"https://api.github.com/repos/hkvision/analytics-zoo/tags","blobs_url":"https://api.github.com/repos/hkvision/analytics-zoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hkvision/analytics-zoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hkvision/analytics-zoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/hkvision/analytics-zoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hkvision/analytics-zoo/statuses/{sha}","languages_url":"https://api.github.com/repos/hkvision/analytics-zoo/languages","stargazers_url":"https://api.github.com/repos/hkvision/analytics-zoo/stargazers","contributors_url":"https://api.github.com/repos/hkvision/analytics-zoo/contributors","subscribers_url":"https://api.github.com/repos/hkvision/analytics-zoo/subscribers","subscription_url":"https://api.github.com/repos/hkvision/analytics-zoo/subscription","commits_url":"https://api.github.com/repos/hkvision/analytics-zoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/hkvision/analytics-zoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/hkvision/analytics-zoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/hkvision/analytics-zoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/hkvision/analytics-zoo/contents/{+path}","compare_url":"https://api.github.com/repos/hkvision/analytics-zoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hkvision/analytics-zoo/merges","archive_url":"https://api.github.com/repos/hkvision/analytics-zoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hkvision/analytics-zoo/downloads","issues_url":"https://api.github.com/repos/hkvision/analytics-zoo/issues{/number}","pulls_url":"https://api.github.com/repos/hkvision/analytics-zoo/pulls{/number}","milestones_url":"https://api.github.com/repos/hkvision/analytics-zoo/milestones{/number}","notifications_url":"https://api.github.com/repos/hkvision/analytics-zoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hkvision/analytics-zoo/labels{/name}","releases_url":"https://api.github.com/repos/hkvision/analytics-zoo/releases{/id}","deployments_url":"https://api.github.com/repos/hkvision/analytics-zoo/deployments","created_at":"2018-05-08T06:04:53Z","updated_at":"2018-06-11T07:53:01Z","pushed_at":"2018-07-09T03:11:57Z","git_url":"git://github.com/hkvision/analytics-zoo.git","ssh_url":"git@github.com:hkvision/analytics-zoo.git","clone_url":"https://github.com/hkvision/analytics-zoo.git","svn_url":"https://github.com/hkvision/analytics-zoo","homepage":"","size":108426,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"intel-analytics:master","ref":"master","sha":"cbf910405339ff41487c9c096a00229456569334","user":{"login":"intel-analytics","id":10941215,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwOTQxMjE1","avatar_url":"https://avatars3.githubusercontent.com/u/10941215?v=4","gravatar_id":"","url":"https://api.github.com/users/intel-analytics","html_url":"https://github.com/intel-analytics","followers_url":"https://api.github.com/users/intel-analytics/followers","following_url":"https://api.github.com/users/intel-analytics/following{/other_user}","gists_url":"https://api.github.com/users/intel-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-analytics/subscriptions","organizations_url":"https://api.github.com/users/intel-analytics/orgs","repos_url":"https://api.github.com/users/intel-analytics/repos","events_url":"https://api.github.com/users/intel-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/intel-analytics/received_events","type":"Organization","site_admin":false},"repo":{"id":90328920,"node_id":"MDEwOlJlcG9zaXRvcnk5MDMyODkyMA==","name":"analytics-zoo","full_name":"intel-analytics/analytics-zoo","owner":{"login":"intel-analytics","id":10941215,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwOTQxMjE1","avatar_url":"https://avatars3.githubusercontent.com/u/10941215?v=4","gravatar_id":"","url":"https://api.github.com/users/intel-analytics","html_url":"https://github.com/intel-analytics","followers_url":"https://api.github.com/users/intel-analytics/followers","following_url":"https://api.github.com/users/intel-analytics/following{/other_user}","gists_url":"https://api.github.com/users/intel-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-analytics/subscriptions","organizations_url":"https://api.github.com/users/intel-analytics/orgs","repos_url":"https://api.github.com/users/intel-analytics/repos","events_url":"https://api.github.com/users/intel-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/intel-analytics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intel-analytics/analytics-zoo","description":"Analytics + AI Platform for Apache Spark and BigDL","fork":false,"url":"https://api.github.com/repos/intel-analytics/analytics-zoo","forks_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/forks","keys_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/teams","hooks_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/hooks","issue_events_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/issues/events{/number}","events_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/events","assignees_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/assignees{/user}","branches_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/branches{/branch}","tags_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/tags","blobs_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/statuses/{sha}","languages_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/languages","stargazers_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/stargazers","contributors_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/contributors","subscribers_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/subscribers","subscription_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/subscription","commits_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/contents/{+path}","compare_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/merges","archive_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/downloads","issues_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/issues{/number}","pulls_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls{/number}","milestones_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/milestones{/number}","notifications_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/labels{/name}","releases_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/releases{/id}","deployments_url":"https://api.github.com/repos/intel-analytics/analytics-zoo/deployments","created_at":"2017-05-05T02:27:30Z","updated_at":"2018-07-09T01:47:16Z","pushed_at":"2018-07-09T03:23:43Z","git_url":"git://github.com/intel-analytics/analytics-zoo.git","ssh_url":"git@github.com:intel-analytics/analytics-zoo.git","clone_url":"https://github.com/intel-analytics/analytics-zoo.git","svn_url":"https://github.com/intel-analytics/analytics-zoo","homepage":"https://analytics-zoo.github.io","size":108784,"stargazers_count":65,"watchers_count":65,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"archived":false,"open_issues_count":46,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":60,"open_issues":46,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/332"},"html":{"href":"https://github.com/intel-analytics/analytics-zoo/pull/332"},"issue":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/issues/332"},"comments":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/issues/332/comments"},"review_comments":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/332/comments"},"review_comment":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/pulls/332/commits"},"statuses":{"href":"https://api.github.com/repos/intel-analytics/analytics-zoo/statuses/d29b4cbffb1fb22a9fcfa85e1da27118ae70ddf1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hkvision"}}