{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/2252","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/2252/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/2252/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/2252/events","html_url":"https://github.com/BVLC/caffe/pull/2252","id":66149886,"number":2252,"title":"Resize and noise policies ","user":{"login":"ducha-aiki","id":4803565,"avatar_url":"https://avatars.githubusercontent.com/u/4803565?v=3","gravatar_id":"","url":"https://api.github.com/users/ducha-aiki","html_url":"https://github.com/ducha-aiki","followers_url":"https://api.github.com/users/ducha-aiki/followers","following_url":"https://api.github.com/users/ducha-aiki/following{/other_user}","gists_url":"https://api.github.com/users/ducha-aiki/gists{/gist_id}","starred_url":"https://api.github.com/users/ducha-aiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ducha-aiki/subscriptions","organizations_url":"https://api.github.com/users/ducha-aiki/orgs","repos_url":"https://api.github.com/users/ducha-aiki/repos","events_url":"https://api.github.com/users/ducha-aiki/events{/privacy}","received_events_url":"https://api.github.com/users/ducha-aiki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-03T13:47:08Z","updated_at":"2016-01-02T19:07:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BVLC/caffe/pulls/2252","html_url":"https://github.com/BVLC/caffe/pull/2252","diff_url":"https://github.com/BVLC/caffe/pull/2252.diff","patch_url":"https://github.com/BVLC/caffe/pull/2252.patch"},"body":"Works only for cv::Mat stored databases.\r\n@immars kindly rebased my branch to current master and added gaussian noise.\r\nP.S. Travis is failing because of different OpenCV version, which does not have CLAHE function.\r\nAdds different resize and noise policies to data_transformer like:\r\n\r\n``` \r\ntransform_param {\r\n    crop_size: 227\r\n    resize_param {\r\n      prob: 0.5\r\n      resize_mode: WARP\r\n      height: 256\r\n      width: 256\r\n      interp_mode: LINEAR\r\n    }\r\n    resize_param {\r\n      prob: 0.25\r\n      resize_mode: BY_LARGE_SIZE\r\n      height: 256\r\n      width: 256\r\n      interp_mode: AREA\r\n    }\r\n      resize_param {\r\n      prob: 0.2\r\n      resize_mode: BY_SMALL_SIZE_AND_PAD\r\n      height: 256\r\n      width: 256\r\n      pad_mode: MIRRORED\r\n      interp_mode: NEAREST\r\n    }\r\n      resize_param {\r\n      prob: 0.05\r\n      resize_mode: BY_SMALL_SIZE_AND_PAD\r\n      height: 256\r\n      width: 256\r\n      pad_mode: CONSTANT\r\n      pad_value: 104\r\n      pad_value: 117\r\n      pad_value: 124\r\n      interp_mode: NEAREST\r\n    }\r\n    noise_param {\r\n    prob: 0.6\r\n    }\r\n    noise_param {\r\n    hist_eq: true\r\n    prob: 0.2\r\n    }  \r\n    noise_param {\r\n    decolorize: true\r\n    gauss_blur: true\r\n    prob: 0.2\r\n    }  \r\n```"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/168417383","html_url":"https://github.com/BVLC/caffe/pull/2252#issuecomment-168417383","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/2252","id":168417383,"user":{"login":"bhack","id":1710528,"avatar_url":"https://avatars.githubusercontent.com/u/1710528?v=3","gravatar_id":"","url":"https://api.github.com/users/bhack","html_url":"https://github.com/bhack","followers_url":"https://api.github.com/users/bhack/followers","following_url":"https://api.github.com/users/bhack/following{/other_user}","gists_url":"https://api.github.com/users/bhack/gists{/gist_id}","starred_url":"https://api.github.com/users/bhack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhack/subscriptions","organizations_url":"https://api.github.com/users/bhack/orgs","repos_url":"https://api.github.com/users/bhack/repos","events_url":"https://api.github.com/users/bhack/events{/privacy}","received_events_url":"https://api.github.com/users/bhack/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T19:07:32Z","updated_at":"2016-01-02T19:07:32Z","body":"Things like basic augmentation could be part of the industrial standard ;)"}}