{"action":"created","issue":{"url":"https://api.github.com/repos/chainer/chainerui/issues/206","repository_url":"https://api.github.com/repos/chainer/chainerui","labels_url":"https://api.github.com/repos/chainer/chainerui/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/chainer/chainerui/issues/206/comments","events_url":"https://api.github.com/repos/chainer/chainerui/issues/206/events","html_url":"https://github.com/chainer/chainerui/pull/206","id":379684556,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMDY0MDcw","number":206,"title":"[WIP]Visualize images without Trainer","user":{"login":"disktnk","id":414255,"node_id":"MDQ6VXNlcjQxNDI1NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/414255?v=4","gravatar_id":"","url":"https://api.github.com/users/disktnk","html_url":"https://github.com/disktnk","followers_url":"https://api.github.com/users/disktnk/followers","following_url":"https://api.github.com/users/disktnk/following{/other_user}","gists_url":"https://api.github.com/users/disktnk/gists{/gist_id}","starred_url":"https://api.github.com/users/disktnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/disktnk/subscriptions","organizations_url":"https://api.github.com/users/disktnk/orgs","repos_url":"https://api.github.com/users/disktnk/repos","events_url":"https://api.github.com/users/disktnk/events{/privacy}","received_events_url":"https://api.github.com/users/disktnk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/chainer/chainerui/milestones/9","html_url":"https://github.com/chainer/chainerui/milestone/9","labels_url":"https://api.github.com/repos/chainer/chainerui/milestones/9/labels","id":3813498,"node_id":"MDk6TWlsZXN0b25lMzgxMzQ5OA==","number":9,"title":"v0.8.0","description":"","creator":{"login":"disktnk","id":414255,"node_id":"MDQ6VXNlcjQxNDI1NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/414255?v=4","gravatar_id":"","url":"https://api.github.com/users/disktnk","html_url":"https://github.com/disktnk","followers_url":"https://api.github.com/users/disktnk/followers","following_url":"https://api.github.com/users/disktnk/following{/other_user}","gists_url":"https://api.github.com/users/disktnk/gists{/gist_id}","starred_url":"https://api.github.com/users/disktnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/disktnk/subscriptions","organizations_url":"https://api.github.com/users/disktnk/orgs","repos_url":"https://api.github.com/users/disktnk/repos","events_url":"https://api.github.com/users/disktnk/events{/privacy}","received_events_url":"https://api.github.com/users/disktnk/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2018-11-12T09:56:22Z","updated_at":"2018-11-12T09:56:39Z","due_on":"2018-12-14T08:00:00Z","closed_at":null},"comments":0,"created_at":"2018-11-12T09:16:59Z","updated_at":"2018-11-13T07:43:07Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/chainer/chainerui/pulls/206","html_url":"https://github.com/chainer/chainerui/pull/206","diff_url":"https://github.com/chainer/chainerui/pull/206.diff","patch_url":"https://github.com/chainer/chainerui/pull/206.patch"},"body":"This PR provides `summary.image` method and `summary.reporter` to visualize images on browser. Current ChainerUI has already provided (undocumented)`ImageReporter`, the extension collects images cached by `summary.image`, split `register` phase and `write` phase, to reduce file writing cost. In many case, however, registering images and write tend to do in same time such as evaluation time, this design confuses.\r\n\r\n**Usage**\r\n\r\n```\r\nfrom chainerui import summary\r\nsummary.image(x, out_path)\r\nsummary.image(x, out_path)\r\n```\r\n\r\n`x`, `x2` are converted as PNG format and show on a browser.\r\n\r\n|timestamp|image|\r\n|---|---|\r\n|2018-11-12T12:00:00|[x image]|\r\n|2018-11-12T12:00:01|[x2 image]|\r\n\r\n```\r\nfrom chainerui import summary\r\nwith summary.reporter(out_path) as r:\r\n    r.image(x)\r\n    r.image(x2)\r\n```\r\n\r\n`x` and `x2` are converted as PNG format and show in same row.\r\n\r\n|timestamp|image_0|image_1\r\n|---|---|---|\r\n|2018-11-12T12:00:00|[x image]|[x2 image]|\r\n\r\n\r\n**Pros**\r\n\r\n1. more simplified usage\r\n1. no dependency to `Trainer`\r\n\r\n**Cons**\r\n\r\n1. `epoch` and `iteration` are not set automatically\r\n\r\nTo deal with Cons. 1, `timestamp` key is added automatically to distinguish images roughly. Additionally any key-pair discription can be set on the function, like `summary.image(x, out_path, epoch=10)`"},"comment":{"url":"https://api.github.com/repos/chainer/chainerui/issues/comments/438167455","html_url":"https://github.com/chainer/chainerui/pull/206#issuecomment-438167455","issue_url":"https://api.github.com/repos/chainer/chainerui/issues/206","id":438167455,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODE2NzQ1NQ==","user":{"login":"disktnk","id":414255,"node_id":"MDQ6VXNlcjQxNDI1NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/414255?v=4","gravatar_id":"","url":"https://api.github.com/users/disktnk","html_url":"https://github.com/disktnk","followers_url":"https://api.github.com/users/disktnk/followers","following_url":"https://api.github.com/users/disktnk/following{/other_user}","gists_url":"https://api.github.com/users/disktnk/gists{/gist_id}","starred_url":"https://api.github.com/users/disktnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/disktnk/subscriptions","organizations_url":"https://api.github.com/users/disktnk/orgs","repos_url":"https://api.github.com/users/disktnk/repos","events_url":"https://api.github.com/users/disktnk/events{/privacy}","received_events_url":"https://api.github.com/users/disktnk/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T07:43:07Z","updated_at":"2018-11-13T07:43:07Z","author_association":"MEMBER","body":"I put quick examples on https://github.com/disktnk/chainerui-demo-20180609/tree/master/vae"}}
{"actor":{"display_login":"disktnk"}}