{"action":"created","comment":{"url":"https://api.github.com/repos/PaddlePaddle/book/pulls/comments/94826653","pull_request_review_id":15365975,"id":94826653,"diff_hunk":"@@ -1 +1,161 @@\n-TODO: Write about https://github.com/PaddlePaddle/Paddle/tree/develop/demo/gan\n+# 对抗式生成网络\n+\n+## 背景介绍","path":"gan/README.md","position":2,"original_position":4,"commit_id":"025363e30b1fb7bf57aa882b9fb76f90e072e945","original_commit_id":"8b2ad1e57cd865c752528ddaa7352494b995baa1","user":{"login":"wangyang59","id":22647205,"avatar_url":"https://avatars.githubusercontent.com/u/22647205?v=3","gravatar_id":"","url":"https://api.github.com/users/wangyang59","html_url":"https://github.com/wangyang59","followers_url":"https://api.github.com/users/wangyang59/followers","following_url":"https://api.github.com/users/wangyang59/following{/other_user}","gists_url":"https://api.github.com/users/wangyang59/gists{/gist_id}","starred_url":"https://api.github.com/users/wangyang59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangyang59/subscriptions","organizations_url":"https://api.github.com/users/wangyang59/orgs","repos_url":"https://api.github.com/users/wangyang59/repos","events_url":"https://api.github.com/users/wangyang59/events{/privacy}","received_events_url":"https://api.github.com/users/wangyang59/received_events","type":"User","site_admin":false},"body":"\"生成模型背后的基本想法是，如果一个模型它能够生成和真实数据非常相近的数据，那么很可能它就学到了对于这种数据的一种很有效的表示。生成模型另一些实际用途包括，图像去噪，缺失图像补全，图像超分辨生成等等。在标记数据不够的时候，还可以用生成模型生成的数据来预训练模型。\r\n\r\n近年来有一些有趣的图片生成模型，一种是变分自编码器（variational autoencoder）\\[[3](#参考文献)\\]，它是在概率图模型（probabilistic graphical model）的框架下面搭建了一个生成模型，对数据有完整的概率描述（即对P(x)进行建模），训练时是通过调节参数来最大化数据的概率。用这种方法产生的图片，虽然所对应的概率高，但很多时候看起来都比较模糊。为了解决这个问题，人们又提出了本章所要介绍的另一种生成模型，对抗式生成网络。\"","created_at":"2017-01-05T18:47:07Z","updated_at":"2017-01-05T18:47:07Z","html_url":"https://github.com/PaddlePaddle/book/pull/30#discussion_r94826653","pull_request_url":"https://api.github.com/repos/PaddlePaddle/book/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/book/pulls/comments/94826653"},"html":{"href":"https://github.com/PaddlePaddle/book/pull/30#discussion_r94826653"},"pull_request":{"href":"https://api.github.com/repos/PaddlePaddle/book/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/PaddlePaddle/book/pulls/30","id":99343584,"html_url":"https://github.com/PaddlePaddle/book/pull/30","diff_url":"https://github.com/PaddlePaddle/book/pull/30.diff","patch_url":"https://github.com/PaddlePaddle/book/pull/30.patch","issue_url":"https://api.github.com/repos/PaddlePaddle/book/issues/30","number":30,"state":"open","locked":false,"title":"gan first draft","user":{"login":"wangyang59","id":22647205,"avatar_url":"https://avatars.githubusercontent.com/u/22647205?v=3","gravatar_id":"","url":"https://api.github.com/users/wangyang59","html_url":"https://github.com/wangyang59","followers_url":"https://api.github.com/users/wangyang59/followers","following_url":"https://api.github.com/users/wangyang59/following{/other_user}","gists_url":"https://api.github.com/users/wangyang59/gists{/gist_id}","starred_url":"https://api.github.com/users/wangyang59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangyang59/subscriptions","organizations_url":"https://api.github.com/users/wangyang59/orgs","repos_url":"https://api.github.com/users/wangyang59/repos","events_url":"https://api.github.com/users/wangyang59/events{/privacy}","received_events_url":"https://api.github.com/users/wangyang59/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-26T06:28:53Z","updated_at":"2017-01-05T18:47:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee4398525c75ef1fc44d2aab31a07d96b4e02cad","assignee":{"login":"Zrachel","id":4532062,"avatar_url":"https://avatars.githubusercontent.com/u/4532062?v=3","gravatar_id":"","url":"https://api.github.com/users/Zrachel","html_url":"https://github.com/Zrachel","followers_url":"https://api.github.com/users/Zrachel/followers","following_url":"https://api.github.com/users/Zrachel/following{/other_user}","gists_url":"https://api.github.com/users/Zrachel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zrachel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zrachel/subscriptions","organizations_url":"https://api.github.com/users/Zrachel/orgs","repos_url":"https://api.github.com/users/Zrachel/repos","events_url":"https://api.github.com/users/Zrachel/events{/privacy}","received_events_url":"https://api.github.com/users/Zrachel/received_events","type":"User","site_admin":false},"assignees":[{"login":"Zrachel","id":4532062,"avatar_url":"https://avatars.githubusercontent.com/u/4532062?v=3","gravatar_id":"","url":"https://api.github.com/users/Zrachel","html_url":"https://github.com/Zrachel","followers_url":"https://api.github.com/users/Zrachel/followers","following_url":"https://api.github.com/users/Zrachel/following{/other_user}","gists_url":"https://api.github.com/users/Zrachel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zrachel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zrachel/subscriptions","organizations_url":"https://api.github.com/users/Zrachel/orgs","repos_url":"https://api.github.com/users/Zrachel/repos","events_url":"https://api.github.com/users/Zrachel/events{/privacy}","received_events_url":"https://api.github.com/users/Zrachel/received_events","type":"User","site_admin":false},{"login":"luotao1","id":6836917,"avatar_url":"https://avatars.githubusercontent.com/u/6836917?v=3","gravatar_id":"","url":"https://api.github.com/users/luotao1","html_url":"https://github.com/luotao1","followers_url":"https://api.github.com/users/luotao1/followers","following_url":"https://api.github.com/users/luotao1/following{/other_user}","gists_url":"https://api.github.com/users/luotao1/gists{/gist_id}","starred_url":"https://api.github.com/users/luotao1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luotao1/subscriptions","organizations_url":"https://api.github.com/users/luotao1/orgs","repos_url":"https://api.github.com/users/luotao1/repos","events_url":"https://api.github.com/users/luotao1/events{/privacy}","received_events_url":"https://api.github.com/users/luotao1/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PaddlePaddle/book/pulls/30/commits","review_comments_url":"https://api.github.com/repos/PaddlePaddle/book/pulls/30/comments","review_comment_url":"https://api.github.com/repos/PaddlePaddle/book/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaddlePaddle/book/issues/30/comments","statuses_url":"https://api.github.com/repos/PaddlePaddle/book/statuses/025363e30b1fb7bf57aa882b9fb76f90e072e945","head":{"label":"wangyang59:gan","ref":"gan","sha":"025363e30b1fb7bf57aa882b9fb76f90e072e945","user":{"login":"wangyang59","id":22647205,"avatar_url":"https://avatars.githubusercontent.com/u/22647205?v=3","gravatar_id":"","url":"https://api.github.com/users/wangyang59","html_url":"https://github.com/wangyang59","followers_url":"https://api.github.com/users/wangyang59/followers","following_url":"https://api.github.com/users/wangyang59/following{/other_user}","gists_url":"https://api.github.com/users/wangyang59/gists{/gist_id}","starred_url":"https://api.github.com/users/wangyang59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangyang59/subscriptions","organizations_url":"https://api.github.com/users/wangyang59/orgs","repos_url":"https://api.github.com/users/wangyang59/repos","events_url":"https://api.github.com/users/wangyang59/events{/privacy}","received_events_url":"https://api.github.com/users/wangyang59/received_events","type":"User","site_admin":false},"repo":{"id":77353625,"name":"book","full_name":"wangyang59/book","owner":{"login":"wangyang59","id":22647205,"avatar_url":"https://avatars.githubusercontent.com/u/22647205?v=3","gravatar_id":"","url":"https://api.github.com/users/wangyang59","html_url":"https://github.com/wangyang59","followers_url":"https://api.github.com/users/wangyang59/followers","following_url":"https://api.github.com/users/wangyang59/following{/other_user}","gists_url":"https://api.github.com/users/wangyang59/gists{/gist_id}","starred_url":"https://api.github.com/users/wangyang59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangyang59/subscriptions","organizations_url":"https://api.github.com/users/wangyang59/orgs","repos_url":"https://api.github.com/users/wangyang59/repos","events_url":"https://api.github.com/users/wangyang59/events{/privacy}","received_events_url":"https://api.github.com/users/wangyang59/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wangyang59/book","description":null,"fork":true,"url":"https://api.github.com/repos/wangyang59/book","forks_url":"https://api.github.com/repos/wangyang59/book/forks","keys_url":"https://api.github.com/repos/wangyang59/book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wangyang59/book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wangyang59/book/teams","hooks_url":"https://api.github.com/repos/wangyang59/book/hooks","issue_events_url":"https://api.github.com/repos/wangyang59/book/issues/events{/number}","events_url":"https://api.github.com/repos/wangyang59/book/events","assignees_url":"https://api.github.com/repos/wangyang59/book/assignees{/user}","branches_url":"https://api.github.com/repos/wangyang59/book/branches{/branch}","tags_url":"https://api.github.com/repos/wangyang59/book/tags","blobs_url":"https://api.github.com/repos/wangyang59/book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wangyang59/book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wangyang59/book/git/refs{/sha}","trees_url":"https://api.github.com/repos/wangyang59/book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wangyang59/book/statuses/{sha}","languages_url":"https://api.github.com/repos/wangyang59/book/languages","stargazers_url":"https://api.github.com/repos/wangyang59/book/stargazers","contributors_url":"https://api.github.com/repos/wangyang59/book/contributors","subscribers_url":"https://api.github.com/repos/wangyang59/book/subscribers","subscription_url":"https://api.github.com/repos/wangyang59/book/subscription","commits_url":"https://api.github.com/repos/wangyang59/book/commits{/sha}","git_commits_url":"https://api.github.com/repos/wangyang59/book/git/commits{/sha}","comments_url":"https://api.github.com/repos/wangyang59/book/comments{/number}","issue_comment_url":"https://api.github.com/repos/wangyang59/book/issues/comments{/number}","contents_url":"https://api.github.com/repos/wangyang59/book/contents/{+path}","compare_url":"https://api.github.com/repos/wangyang59/book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wangyang59/book/merges","archive_url":"https://api.github.com/repos/wangyang59/book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wangyang59/book/downloads","issues_url":"https://api.github.com/repos/wangyang59/book/issues{/number}","pulls_url":"https://api.github.com/repos/wangyang59/book/pulls{/number}","milestones_url":"https://api.github.com/repos/wangyang59/book/milestones{/number}","notifications_url":"https://api.github.com/repos/wangyang59/book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wangyang59/book/labels{/name}","releases_url":"https://api.github.com/repos/wangyang59/book/releases{/id}","deployments_url":"https://api.github.com/repos/wangyang59/book/deployments","created_at":"2016-12-26T02:53:20Z","updated_at":"2016-12-21T05:59:36Z","pushed_at":"2017-01-03T20:07:46Z","git_url":"git://github.com/wangyang59/book.git","ssh_url":"git@github.com:wangyang59/book.git","clone_url":"https://github.com/wangyang59/book.git","svn_url":"https://github.com/wangyang59/book","homepage":null,"size":408,"stargazers_count":0,"watchers_count":0,"language":null,"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":"develop"}},"base":{"label":"PaddlePaddle:develop","ref":"develop","sha":"4672708e63b2491e4d2b8e522a464c8c941c76c6","user":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars.githubusercontent.com/u/23534030?v=3","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"repo":{"id":76616099,"name":"book","full_name":"PaddlePaddle/book","owner":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars.githubusercontent.com/u/23534030?v=3","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaddlePaddle/book","description":null,"fork":false,"url":"https://api.github.com/repos/PaddlePaddle/book","forks_url":"https://api.github.com/repos/PaddlePaddle/book/forks","keys_url":"https://api.github.com/repos/PaddlePaddle/book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaddlePaddle/book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaddlePaddle/book/teams","hooks_url":"https://api.github.com/repos/PaddlePaddle/book/hooks","issue_events_url":"https://api.github.com/repos/PaddlePaddle/book/issues/events{/number}","events_url":"https://api.github.com/repos/PaddlePaddle/book/events","assignees_url":"https://api.github.com/repos/PaddlePaddle/book/assignees{/user}","branches_url":"https://api.github.com/repos/PaddlePaddle/book/branches{/branch}","tags_url":"https://api.github.com/repos/PaddlePaddle/book/tags","blobs_url":"https://api.github.com/repos/PaddlePaddle/book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaddlePaddle/book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaddlePaddle/book/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaddlePaddle/book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaddlePaddle/book/statuses/{sha}","languages_url":"https://api.github.com/repos/PaddlePaddle/book/languages","stargazers_url":"https://api.github.com/repos/PaddlePaddle/book/stargazers","contributors_url":"https://api.github.com/repos/PaddlePaddle/book/contributors","subscribers_url":"https://api.github.com/repos/PaddlePaddle/book/subscribers","subscription_url":"https://api.github.com/repos/PaddlePaddle/book/subscription","commits_url":"https://api.github.com/repos/PaddlePaddle/book/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaddlePaddle/book/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaddlePaddle/book/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaddlePaddle/book/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaddlePaddle/book/contents/{+path}","compare_url":"https://api.github.com/repos/PaddlePaddle/book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaddlePaddle/book/merges","archive_url":"https://api.github.com/repos/PaddlePaddle/book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaddlePaddle/book/downloads","issues_url":"https://api.github.com/repos/PaddlePaddle/book/issues{/number}","pulls_url":"https://api.github.com/repos/PaddlePaddle/book/pulls{/number}","milestones_url":"https://api.github.com/repos/PaddlePaddle/book/milestones{/number}","notifications_url":"https://api.github.com/repos/PaddlePaddle/book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaddlePaddle/book/labels{/name}","releases_url":"https://api.github.com/repos/PaddlePaddle/book/releases{/id}","deployments_url":"https://api.github.com/repos/PaddlePaddle/book/deployments","created_at":"2016-12-16T03:00:50Z","updated_at":"2017-01-05T05:11:21Z","pushed_at":"2017-01-05T11:15:31Z","git_url":"git://github.com/PaddlePaddle/book.git","ssh_url":"git@github.com:PaddlePaddle/book.git","clone_url":"https://github.com/PaddlePaddle/book.git","svn_url":"https://github.com/PaddlePaddle/book","homepage":null,"size":165,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":23,"forks":14,"open_issues":23,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/book/pulls/30"},"html":{"href":"https://github.com/PaddlePaddle/book/pull/30"},"issue":{"href":"https://api.github.com/repos/PaddlePaddle/book/issues/30"},"comments":{"href":"https://api.github.com/repos/PaddlePaddle/book/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/PaddlePaddle/book/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/PaddlePaddle/book/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaddlePaddle/book/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/PaddlePaddle/book/statuses/025363e30b1fb7bf57aa882b9fb76f90e072e945"}}}}
{"actor":{"display_login":"wangyang59"}}