{"action":"created","issue":{"url":"https://api.github.com/repos/keras-team/keras-preprocessing/issues/18","repository_url":"https://api.github.com/repos/keras-team/keras-preprocessing","labels_url":"https://api.github.com/repos/keras-team/keras-preprocessing/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/keras-team/keras-preprocessing/issues/18/comments","events_url":"https://api.github.com/repos/keras-team/keras-preprocessing/issues/18/events","html_url":"https://github.com/keras-team/keras-preprocessing/pull/18","id":334780841,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NjYyOTc2","number":18,"title":"Different channel shift values at different image channels","user":{"login":"zhenglilei","id":8134656,"node_id":"MDQ6VXNlcjgxMzQ2NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/8134656?v=4","gravatar_id":"","url":"https://api.github.com/users/zhenglilei","html_url":"https://github.com/zhenglilei","followers_url":"https://api.github.com/users/zhenglilei/followers","following_url":"https://api.github.com/users/zhenglilei/following{/other_user}","gists_url":"https://api.github.com/users/zhenglilei/gists{/gist_id}","starred_url":"https://api.github.com/users/zhenglilei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhenglilei/subscriptions","organizations_url":"https://api.github.com/users/zhenglilei/orgs","repos_url":"https://api.github.com/users/zhenglilei/repos","events_url":"https://api.github.com/users/zhenglilei/events{/privacy}","received_events_url":"https://api.github.com/users/zhenglilei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-22T07:52:55Z","updated_at":"2018-06-23T17:41:35Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/keras-team/keras-preprocessing/pulls/18","html_url":"https://github.com/keras-team/keras-preprocessing/pull/18","diff_url":"https://github.com/keras-team/keras-preprocessing/pull/18.diff","patch_url":"https://github.com/keras-team/keras-preprocessing/pull/18.patch"},"body":"The channel shift values for different image channels can be different. So it is incorrect to do a one-time randomization before calling the \"apply_channel_shift\" function. The changes are made according to the codes in the previous version, Keras 2.1.6, i.e., randomization is done for each channel of an image.\r\n\r\n`channel_images = [\r\n        np.clip(x_channel + np.random.uniform(-intensity, intensity),\r\n                min_x,\r\n                max_x)\r\n        for x_channel in x]`\r\n\r\nA reference for using channel shift in data augmentation: https://github.com/JustinhoCHN/keras-image-data-augmentation#8-channel_shift_range"},"comment":{"url":"https://api.github.com/repos/keras-team/keras-preprocessing/issues/comments/399696191","html_url":"https://github.com/keras-team/keras-preprocessing/pull/18#issuecomment-399696191","issue_url":"https://api.github.com/repos/keras-team/keras-preprocessing/issues/18","id":399696191,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTY5NjE5MQ==","user":{"login":"Dref360","id":8976546,"node_id":"MDQ6VXNlcjg5NzY1NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/8976546?v=4","gravatar_id":"","url":"https://api.github.com/users/Dref360","html_url":"https://github.com/Dref360","followers_url":"https://api.github.com/users/Dref360/followers","following_url":"https://api.github.com/users/Dref360/following{/other_user}","gists_url":"https://api.github.com/users/Dref360/gists{/gist_id}","starred_url":"https://api.github.com/users/Dref360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dref360/subscriptions","organizations_url":"https://api.github.com/users/Dref360/orgs","repos_url":"https://api.github.com/users/Dref360/repos","events_url":"https://api.github.com/users/Dref360/events{/privacy}","received_events_url":"https://api.github.com/users/Dref360/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T17:41:35Z","updated_at":"2018-06-23T17:41:35Z","author_association":"MEMBER","body":"The point of `apply_channel_shift` is to be deterministic."}}
{"actor":{"display_login":"Dref360"}}