{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/examples/issues/163","repository_url":"https://api.github.com/repos/pytorch/examples","labels_url":"https://api.github.com/repos/pytorch/examples/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/examples/issues/163/comments","events_url":"https://api.github.com/repos/pytorch/examples/issues/163/events","html_url":"https://github.com/pytorch/examples/issues/163","id":232241367,"number":163,"title":"super_resolution model building question","user":{"login":"pageedward","id":26244036,"avatar_url":"https://avatars1.githubusercontent.com/u/26244036?v=4","gravatar_id":"","url":"https://api.github.com/users/pageedward","html_url":"https://github.com/pageedward","followers_url":"https://api.github.com/users/pageedward/followers","following_url":"https://api.github.com/users/pageedward/following{/other_user}","gists_url":"https://api.github.com/users/pageedward/gists{/gist_id}","starred_url":"https://api.github.com/users/pageedward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pageedward/subscriptions","organizations_url":"https://api.github.com/users/pageedward/orgs","repos_url":"https://api.github.com/users/pageedward/repos","events_url":"https://api.github.com/users/pageedward/events{/privacy}","received_events_url":"https://api.github.com/users/pageedward/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-30T12:48:11Z","updated_at":"2018-02-02T03:52:49Z","closed_at":null,"author_association":"NONE","body":"class Net(nn.Module):\r\n    def __init__(self, upscale_factor):\r\n        super(Net, self).__init__()\r\n\r\n        self.relu = nn.ReLU()\r\n        self.conv1 = nn.Conv2d(1, 64, 5, 1, 2)\r\n        self.conv2 = nn.Conv2d(64, 64, 3, 1, 1)\r\n        self.conv3 = nn.Conv2d(64, 32, 3, 1, 1)\r\n        self.conv4 = nn.Conv2d(32, upscale_factor ** 2, 3, 1, 1)\r\n        self.pixel_shuffle = nn.PixelShuffle(upscale_factor)\r\n\r\nhow could u get the following information from the paper,\r\nin the self.conv1,  there is padding = 2\r\nlayer num l in paper is 3 ,why do u add self.conv2,?\r\nself.conv4 's output_channel is upscale_factor**2\r\n"},"comment":{"url":"https://api.github.com/repos/pytorch/examples/issues/comments/362478759","html_url":"https://github.com/pytorch/examples/issues/163#issuecomment-362478759","issue_url":"https://api.github.com/repos/pytorch/examples/issues/163","id":362478759,"user":{"login":"Kaixhin","id":991891,"avatar_url":"https://avatars3.githubusercontent.com/u/991891?v=4","gravatar_id":"","url":"https://api.github.com/users/Kaixhin","html_url":"https://github.com/Kaixhin","followers_url":"https://api.github.com/users/Kaixhin/followers","following_url":"https://api.github.com/users/Kaixhin/following{/other_user}","gists_url":"https://api.github.com/users/Kaixhin/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaixhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaixhin/subscriptions","organizations_url":"https://api.github.com/users/Kaixhin/orgs","repos_url":"https://api.github.com/users/Kaixhin/repos","events_url":"https://api.github.com/users/Kaixhin/events{/privacy}","received_events_url":"https://api.github.com/users/Kaixhin/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T03:52:49Z","updated_at":"2018-02-02T03:52:49Z","author_association":"CONTRIBUTOR","body":"> This example illustrates how to use the efficient sub-pixel convolution layer\r\n\r\nThe code states that this is an example of how to use the layer, not a replica of the model from the associated paper.\r\n\r\nThe amount of padding is chosen to [make sure the output size is the same as the input size](https://stackoverflow.com/questions/37674306/what-is-the-difference-between-same-and-valid-padding-in-tf-nn-max-pool-of-t)."}}
{"actor":{"display_login":"Kaixhin"}}