{"action":"closed","issue":{"url":"https://api.github.com/repos/richzhang/PerceptualSimilarity/issues/9","repository_url":"https://api.github.com/repos/richzhang/PerceptualSimilarity","labels_url":"https://api.github.com/repos/richzhang/PerceptualSimilarity/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/richzhang/PerceptualSimilarity/issues/9/comments","events_url":"https://api.github.com/repos/richzhang/PerceptualSimilarity/issues/9/events","html_url":"https://github.com/richzhang/PerceptualSimilarity/issues/9","id":331928407,"node_id":"MDU6SXNzdWUzMzE5Mjg0MDc=","number":9,"title":"PNetlin.forward image normalization ","user":{"login":"roimehrez","id":15338022,"node_id":"MDQ6VXNlcjE1MzM4MDIy","avatar_url":"https://avatars1.githubusercontent.com/u/15338022?v=4","gravatar_id":"","url":"https://api.github.com/users/roimehrez","html_url":"https://github.com/roimehrez","followers_url":"https://api.github.com/users/roimehrez/followers","following_url":"https://api.github.com/users/roimehrez/following{/other_user}","gists_url":"https://api.github.com/users/roimehrez/gists{/gist_id}","starred_url":"https://api.github.com/users/roimehrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roimehrez/subscriptions","organizations_url":"https://api.github.com/users/roimehrez/orgs","repos_url":"https://api.github.com/users/roimehrez/repos","events_url":"https://api.github.com/users/roimehrez/events{/privacy}","received_events_url":"https://api.github.com/users/roimehrez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-13T10:09:52Z","updated_at":"2018-06-17T08:06:05Z","closed_at":"2018-06-17T08:06:05Z","author_association":"NONE","body":"```\r\n    def forward(self, in0, in1):\r\n        in0_sc = (in0 - self.shift.expand_as(in0)) / self.scale.expand_as(in0)\r\n        in1_sc = (in1 - self.shift.expand_as(in0)) / self.scale.expand_as(in0)\r\n\r\n        if (self.pnet_tune):\r\n            outs0 = self.net.forward(in0)\r\n            outs1 = self.net.forward(in1)\r\n        else:\r\n            outs0 = self.net[0].forward(in0)\r\n            outs1 = self.net[0].forward(in1)\r\n```\r\n\r\nWhy you don't use `in0_sc ` to feed the net? Is it a bug or a feature? "}}
{"actor":{"display_login":"roimehrez"}}