{"action":"created","issue":{"url":"https://api.github.com/repos/KupynOrest/DeblurGAN/issues/45","repository_url":"https://api.github.com/repos/KupynOrest/DeblurGAN","labels_url":"https://api.github.com/repos/KupynOrest/DeblurGAN/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/KupynOrest/DeblurGAN/issues/45/comments","events_url":"https://api.github.com/repos/KupynOrest/DeblurGAN/issues/45/events","html_url":"https://github.com/KupynOrest/DeblurGAN/issues/45","id":301031429,"number":45,"title":"new code for PSNR","user":{"login":"SivanDoveh","id":31625272,"avatar_url":"https://avatars0.githubusercontent.com/u/31625272?v=4","gravatar_id":"","url":"https://api.github.com/users/SivanDoveh","html_url":"https://github.com/SivanDoveh","followers_url":"https://api.github.com/users/SivanDoveh/followers","following_url":"https://api.github.com/users/SivanDoveh/following{/other_user}","gists_url":"https://api.github.com/users/SivanDoveh/gists{/gist_id}","starred_url":"https://api.github.com/users/SivanDoveh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SivanDoveh/subscriptions","organizations_url":"https://api.github.com/users/SivanDoveh/orgs","repos_url":"https://api.github.com/users/SivanDoveh/repos","events_url":"https://api.github.com/users/SivanDoveh/events{/privacy}","received_events_url":"https://api.github.com/users/SivanDoveh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T13:52:41Z","updated_at":"2018-03-13T08:59:33Z","closed_at":null,"author_association":"NONE","body":"hi!\r\nif i want to run psnr calculation on some dataset how can i do it?\r\nthanks!"},"comment":{"url":"https://api.github.com/repos/KupynOrest/DeblurGAN/issues/comments/372592736","html_url":"https://github.com/KupynOrest/DeblurGAN/issues/45#issuecomment-372592736","issue_url":"https://api.github.com/repos/KupynOrest/DeblurGAN/issues/45","id":372592736,"user":{"login":"nickolaymykhalych","id":22378084,"avatar_url":"https://avatars0.githubusercontent.com/u/22378084?v=4","gravatar_id":"","url":"https://api.github.com/users/nickolaymykhalych","html_url":"https://github.com/nickolaymykhalych","followers_url":"https://api.github.com/users/nickolaymykhalych/followers","following_url":"https://api.github.com/users/nickolaymykhalych/following{/other_user}","gists_url":"https://api.github.com/users/nickolaymykhalych/gists{/gist_id}","starred_url":"https://api.github.com/users/nickolaymykhalych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickolaymykhalych/subscriptions","organizations_url":"https://api.github.com/users/nickolaymykhalych/orgs","repos_url":"https://api.github.com/users/nickolaymykhalych/repos","events_url":"https://api.github.com/users/nickolaymykhalych/events{/privacy}","received_events_url":"https://api.github.com/users/nickolaymykhalych/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T08:59:33Z","updated_at":"2018-03-13T08:59:33Z","author_association":"COLLABORATOR","body":"`def PSNR(img1, img2):\r\n\tmse = np.mean( (img1/255. - img2/255.) ** 2 )\r\n\tif mse == 0:\r\n\t\treturn 100\r\n\tPIXEL_MAX = 1\r\n\treturn 20 * math.log10(PIXEL_MAX / math.sqrt(mse))`\r\nimg1 and img2 is numpy array."}}
{"actor":{"display_login":"nickolaymykhalych"}}