{"action":"created","comment":{"url":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/comments/212690755","pull_request_review_id":149381098,"id":212690755,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjY5MDc1NQ==","diff_hunk":"@@ -0,0 +1,458 @@\n+import logging\n+import math\n+import cv2\n+import numpy as np\n+import tensorflow as tf\n+import time\n+import common\n+from common import CocoPart\n+from smoother import Smoother\n+import tensorlayer as tl\n+from tensorlayer.layers import *\n+try:\n+    from pafprocess import pafprocess\n+except ImportError as e:","path":"example/openpose/inference/estimator.py","position":14,"original_position":14,"commit_id":"b5e2f5891ceddac355a6e4d6ba533bffcae5e2c3","original_commit_id":"b5e2f5891ceddac355a6e4d6ba533bffcae5e2c3","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Redefining name 'e' from outer scope (line 11) in exception handler](https://app.codacy.com/app/tensorlayer/tensorlayer/pullRequest?prid=2045082)","created_at":"2018-08-24T16:57:25Z","updated_at":"2018-08-24T16:57:25Z","html_url":"https://github.com/tensorlayer/tensorlayer/pull/787#discussion_r212690755","pull_request_url":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/787","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/comments/212690755"},"html":{"href":"https://github.com/tensorlayer/tensorlayer/pull/787#discussion_r212690755"},"pull_request":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/787"}}},"pull_request":{"url":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/787","id":208414960,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NDE0OTYw","html_url":"https://github.com/tensorlayer/tensorlayer/pull/787","diff_url":"https://github.com/tensorlayer/tensorlayer/pull/787.diff","patch_url":"https://github.com/tensorlayer/tensorlayer/pull/787.patch","issue_url":"https://api.github.com/repos/tensorlayer/tensorlayer/issues/787","number":787,"state":"open","locked":false,"title":"[WIP] openpose example","user":{"login":"zsdonghao","id":10713581,"node_id":"MDQ6VXNlcjEwNzEzNTgx","avatar_url":"https://avatars0.githubusercontent.com/u/10713581?v=4","gravatar_id":"","url":"https://api.github.com/users/zsdonghao","html_url":"https://github.com/zsdonghao","followers_url":"https://api.github.com/users/zsdonghao/followers","following_url":"https://api.github.com/users/zsdonghao/following{/other_user}","gists_url":"https://api.github.com/users/zsdonghao/gists{/gist_id}","starred_url":"https://api.github.com/users/zsdonghao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsdonghao/subscriptions","organizations_url":"https://api.github.com/users/zsdonghao/orgs","repos_url":"https://api.github.com/users/zsdonghao/repos","events_url":"https://api.github.com/users/zsdonghao/events{/privacy}","received_events_url":"https://api.github.com/users/zsdonghao/received_events","type":"User","site_admin":false},"body":"This is the TensorFlow implementation of [\"Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields\"](https://arxiv.org/pdf/1611.08050.pdf)\r\n\r\nThere are some extra works need to be done before we can merge this PR.\r\n- [ ] APIs for evaluation\r\n- [ ] APIs for deployment (TensorRT)\r\n- [ ] Provides pre-trained model here: https://github.com/tensorlayer/pretrained-models/tree/master/models\r\n- [ ] Provides averaged precision (AP) results of the pre-trained model in readme.\r\n- [ ] Moves (numpy-based, non-TF) data augmentation APIs into `tl.prepro`.\r\n- [ ] Moves COCO dataset download and preprocess code into `tl.files` that allow users to automatically download and prepare the dataset.\r\n- [ ] Readme:\r\n    - [x] introduction of this project\r\n    - [ ] how to use your pre-trained model\r\n    - [x] how to download dataset\r\n    - [ ] how to train and evaluate model\r\n    - [ ] how to train model on customised dataset\r\n    - [ ] how to customise data augmentation\r\n\r\nTo speed up the training:\r\n- [ ] use `tl.distributed.Trainer`\r\n\r\nTo speed up the inferencing:\r\n- [x] For pose-processing, uses the C implementation of OpenPose\r\n- [ ] Smaller model\r\n- [ ] TensorRT float16 (half-float) inferencing\r\n\r\nFor TensorLayer Project Quality:\r\n- [ ] Update Changelog.md\r\n- [ ] Add unittests","created_at":"2018-08-14T21:24:27Z","updated_at":"2018-08-24T16:57:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b86b16386933e6af8dcdbef40cca32f2b22961b0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"luomai","id":1136455,"node_id":"MDQ6VXNlcjExMzY0NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1136455?v=4","gravatar_id":"","url":"https://api.github.com/users/luomai","html_url":"https://github.com/luomai","followers_url":"https://api.github.com/users/luomai/followers","following_url":"https://api.github.com/users/luomai/following{/other_user}","gists_url":"https://api.github.com/users/luomai/gists{/gist_id}","starred_url":"https://api.github.com/users/luomai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luomai/subscriptions","organizations_url":"https://api.github.com/users/luomai/orgs","repos_url":"https://api.github.com/users/luomai/repos","events_url":"https://api.github.com/users/luomai/events{/privacy}","received_events_url":"https://api.github.com/users/luomai/received_events","type":"User","site_admin":false},{"login":"boldjoel","id":15371409,"node_id":"MDQ6VXNlcjE1MzcxNDA5","avatar_url":"https://avatars3.githubusercontent.com/u/15371409?v=4","gravatar_id":"","url":"https://api.github.com/users/boldjoel","html_url":"https://github.com/boldjoel","followers_url":"https://api.github.com/users/boldjoel/followers","following_url":"https://api.github.com/users/boldjoel/following{/other_user}","gists_url":"https://api.github.com/users/boldjoel/gists{/gist_id}","starred_url":"https://api.github.com/users/boldjoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boldjoel/subscriptions","organizations_url":"https://api.github.com/users/boldjoel/orgs","repos_url":"https://api.github.com/users/boldjoel/repos","events_url":"https://api.github.com/users/boldjoel/events{/privacy}","received_events_url":"https://api.github.com/users/boldjoel/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/787/commits","review_comments_url":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/787/comments","review_comment_url":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tensorlayer/tensorlayer/issues/787/comments","statuses_url":"https://api.github.com/repos/tensorlayer/tensorlayer/statuses/b5e2f5891ceddac355a6e4d6ba533bffcae5e2c3","head":{"label":"tensorlayer:openpose","ref":"openpose","sha":"b5e2f5891ceddac355a6e4d6ba533bffcae5e2c3","user":{"login":"tensorlayer","id":32261543,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjYxNTQz","avatar_url":"https://avatars1.githubusercontent.com/u/32261543?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorlayer","html_url":"https://github.com/tensorlayer","followers_url":"https://api.github.com/users/tensorlayer/followers","following_url":"https://api.github.com/users/tensorlayer/following{/other_user}","gists_url":"https://api.github.com/users/tensorlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorlayer/subscriptions","organizations_url":"https://api.github.com/users/tensorlayer/orgs","repos_url":"https://api.github.com/users/tensorlayer/repos","events_url":"https://api.github.com/users/tensorlayer/events{/privacy}","received_events_url":"https://api.github.com/users/tensorlayer/received_events","type":"Organization","site_admin":false},"repo":{"id":60626727,"node_id":"MDEwOlJlcG9zaXRvcnk2MDYyNjcyNw==","name":"tensorlayer","full_name":"tensorlayer/tensorlayer","owner":{"login":"tensorlayer","id":32261543,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjYxNTQz","avatar_url":"https://avatars1.githubusercontent.com/u/32261543?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorlayer","html_url":"https://github.com/tensorlayer","followers_url":"https://api.github.com/users/tensorlayer/followers","following_url":"https://api.github.com/users/tensorlayer/following{/other_user}","gists_url":"https://api.github.com/users/tensorlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorlayer/subscriptions","organizations_url":"https://api.github.com/users/tensorlayer/orgs","repos_url":"https://api.github.com/users/tensorlayer/repos","events_url":"https://api.github.com/users/tensorlayer/events{/privacy}","received_events_url":"https://api.github.com/users/tensorlayer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tensorlayer/tensorlayer","description":"Versatile Deep Learning Toolbox","fork":false,"url":"https://api.github.com/repos/tensorlayer/tensorlayer","forks_url":"https://api.github.com/repos/tensorlayer/tensorlayer/forks","keys_url":"https://api.github.com/repos/tensorlayer/tensorlayer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tensorlayer/tensorlayer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tensorlayer/tensorlayer/teams","hooks_url":"https://api.github.com/repos/tensorlayer/tensorlayer/hooks","issue_events_url":"https://api.github.com/repos/tensorlayer/tensorlayer/issues/events{/number}","events_url":"https://api.github.com/repos/tensorlayer/tensorlayer/events","assignees_url":"https://api.github.com/repos/tensorlayer/tensorlayer/assignees{/user}","branches_url":"https://api.github.com/repos/tensorlayer/tensorlayer/branches{/branch}","tags_url":"https://api.github.com/repos/tensorlayer/tensorlayer/tags","blobs_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tensorlayer/tensorlayer/statuses/{sha}","languages_url":"https://api.github.com/repos/tensorlayer/tensorlayer/languages","stargazers_url":"https://api.github.com/repos/tensorlayer/tensorlayer/stargazers","contributors_url":"https://api.github.com/repos/tensorlayer/tensorlayer/contributors","subscribers_url":"https://api.github.com/repos/tensorlayer/tensorlayer/subscribers","subscription_url":"https://api.github.com/repos/tensorlayer/tensorlayer/subscription","commits_url":"https://api.github.com/repos/tensorlayer/tensorlayer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tensorlayer/tensorlayer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tensorlayer/tensorlayer/issues/comments{/number}","contents_url":"https://api.github.com/repos/tensorlayer/tensorlayer/contents/{+path}","compare_url":"https://api.github.com/repos/tensorlayer/tensorlayer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tensorlayer/tensorlayer/merges","archive_url":"https://api.github.com/repos/tensorlayer/tensorlayer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tensorlayer/tensorlayer/downloads","issues_url":"https://api.github.com/repos/tensorlayer/tensorlayer/issues{/number}","pulls_url":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls{/number}","milestones_url":"https://api.github.com/repos/tensorlayer/tensorlayer/milestones{/number}","notifications_url":"https://api.github.com/repos/tensorlayer/tensorlayer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tensorlayer/tensorlayer/labels{/name}","releases_url":"https://api.github.com/repos/tensorlayer/tensorlayer/releases{/id}","deployments_url":"https://api.github.com/repos/tensorlayer/tensorlayer/deployments","created_at":"2016-06-07T15:55:16Z","updated_at":"2018-08-24T13:04:49Z","pushed_at":"2018-08-24T16:53:22Z","git_url":"git://github.com/tensorlayer/tensorlayer.git","ssh_url":"git@github.com:tensorlayer/tensorlayer.git","clone_url":"https://github.com/tensorlayer/tensorlayer.git","svn_url":"https://github.com/tensorlayer/tensorlayer","homepage":"http://tensorlayer.readthedocs.io","size":87198,"stargazers_count":4190,"watchers_count":4190,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1030,"mirror_url":null,"archived":false,"open_issues_count":53,"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":1030,"open_issues":53,"watchers":4190,"default_branch":"master"}},"base":{"label":"tensorlayer:master","ref":"master","sha":"0ebb83837d9da54dbbabf7b9acdd4db4102d5dac","user":{"login":"tensorlayer","id":32261543,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjYxNTQz","avatar_url":"https://avatars1.githubusercontent.com/u/32261543?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorlayer","html_url":"https://github.com/tensorlayer","followers_url":"https://api.github.com/users/tensorlayer/followers","following_url":"https://api.github.com/users/tensorlayer/following{/other_user}","gists_url":"https://api.github.com/users/tensorlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorlayer/subscriptions","organizations_url":"https://api.github.com/users/tensorlayer/orgs","repos_url":"https://api.github.com/users/tensorlayer/repos","events_url":"https://api.github.com/users/tensorlayer/events{/privacy}","received_events_url":"https://api.github.com/users/tensorlayer/received_events","type":"Organization","site_admin":false},"repo":{"id":60626727,"node_id":"MDEwOlJlcG9zaXRvcnk2MDYyNjcyNw==","name":"tensorlayer","full_name":"tensorlayer/tensorlayer","owner":{"login":"tensorlayer","id":32261543,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjYxNTQz","avatar_url":"https://avatars1.githubusercontent.com/u/32261543?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorlayer","html_url":"https://github.com/tensorlayer","followers_url":"https://api.github.com/users/tensorlayer/followers","following_url":"https://api.github.com/users/tensorlayer/following{/other_user}","gists_url":"https://api.github.com/users/tensorlayer/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorlayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorlayer/subscriptions","organizations_url":"https://api.github.com/users/tensorlayer/orgs","repos_url":"https://api.github.com/users/tensorlayer/repos","events_url":"https://api.github.com/users/tensorlayer/events{/privacy}","received_events_url":"https://api.github.com/users/tensorlayer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tensorlayer/tensorlayer","description":"Versatile Deep Learning Toolbox","fork":false,"url":"https://api.github.com/repos/tensorlayer/tensorlayer","forks_url":"https://api.github.com/repos/tensorlayer/tensorlayer/forks","keys_url":"https://api.github.com/repos/tensorlayer/tensorlayer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tensorlayer/tensorlayer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tensorlayer/tensorlayer/teams","hooks_url":"https://api.github.com/repos/tensorlayer/tensorlayer/hooks","issue_events_url":"https://api.github.com/repos/tensorlayer/tensorlayer/issues/events{/number}","events_url":"https://api.github.com/repos/tensorlayer/tensorlayer/events","assignees_url":"https://api.github.com/repos/tensorlayer/tensorlayer/assignees{/user}","branches_url":"https://api.github.com/repos/tensorlayer/tensorlayer/branches{/branch}","tags_url":"https://api.github.com/repos/tensorlayer/tensorlayer/tags","blobs_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tensorlayer/tensorlayer/statuses/{sha}","languages_url":"https://api.github.com/repos/tensorlayer/tensorlayer/languages","stargazers_url":"https://api.github.com/repos/tensorlayer/tensorlayer/stargazers","contributors_url":"https://api.github.com/repos/tensorlayer/tensorlayer/contributors","subscribers_url":"https://api.github.com/repos/tensorlayer/tensorlayer/subscribers","subscription_url":"https://api.github.com/repos/tensorlayer/tensorlayer/subscription","commits_url":"https://api.github.com/repos/tensorlayer/tensorlayer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tensorlayer/tensorlayer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tensorlayer/tensorlayer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tensorlayer/tensorlayer/issues/comments{/number}","contents_url":"https://api.github.com/repos/tensorlayer/tensorlayer/contents/{+path}","compare_url":"https://api.github.com/repos/tensorlayer/tensorlayer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tensorlayer/tensorlayer/merges","archive_url":"https://api.github.com/repos/tensorlayer/tensorlayer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tensorlayer/tensorlayer/downloads","issues_url":"https://api.github.com/repos/tensorlayer/tensorlayer/issues{/number}","pulls_url":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls{/number}","milestones_url":"https://api.github.com/repos/tensorlayer/tensorlayer/milestones{/number}","notifications_url":"https://api.github.com/repos/tensorlayer/tensorlayer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tensorlayer/tensorlayer/labels{/name}","releases_url":"https://api.github.com/repos/tensorlayer/tensorlayer/releases{/id}","deployments_url":"https://api.github.com/repos/tensorlayer/tensorlayer/deployments","created_at":"2016-06-07T15:55:16Z","updated_at":"2018-08-24T13:04:49Z","pushed_at":"2018-08-24T16:53:22Z","git_url":"git://github.com/tensorlayer/tensorlayer.git","ssh_url":"git@github.com:tensorlayer/tensorlayer.git","clone_url":"https://github.com/tensorlayer/tensorlayer.git","svn_url":"https://github.com/tensorlayer/tensorlayer","homepage":"http://tensorlayer.readthedocs.io","size":87198,"stargazers_count":4190,"watchers_count":4190,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1030,"mirror_url":null,"archived":false,"open_issues_count":53,"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":1030,"open_issues":53,"watchers":4190,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/787"},"html":{"href":"https://github.com/tensorlayer/tensorlayer/pull/787"},"issue":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/issues/787"},"comments":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/issues/787/comments"},"review_comments":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/787/comments"},"review_comment":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/pulls/787/commits"},"statuses":{"href":"https://api.github.com/repos/tensorlayer/tensorlayer/statuses/b5e2f5891ceddac355a6e4d6ba533bffcae5e2c3"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}