{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/2840","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/2840/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/2840/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/2840/events","html_url":"https://github.com/BVLC/caffe/issues/2840","id":98378300,"number":2840,"title":"Implement transformations as layers","user":{"login":"IMG-PRCSNG","id":3027352,"avatar_url":"https://avatars.githubusercontent.com/u/3027352?v=3","gravatar_id":"","url":"https://api.github.com/users/IMG-PRCSNG","html_url":"https://github.com/IMG-PRCSNG","followers_url":"https://api.github.com/users/IMG-PRCSNG/followers","following_url":"https://api.github.com/users/IMG-PRCSNG/following{/other_user}","gists_url":"https://api.github.com/users/IMG-PRCSNG/gists{/gist_id}","starred_url":"https://api.github.com/users/IMG-PRCSNG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMG-PRCSNG/subscriptions","organizations_url":"https://api.github.com/users/IMG-PRCSNG/orgs","repos_url":"https://api.github.com/users/IMG-PRCSNG/repos","events_url":"https://api.github.com/users/IMG-PRCSNG/events{/privacy}","received_events_url":"https://api.github.com/users/IMG-PRCSNG/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BVLC/caffe/labels/enhancement","name":"enhancement","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-31T12:07:10Z","updated_at":"2015-08-02T22:59:55Z","closed_at":null,"body":"There have been multiple issues regarding transformations not being applied properly in **memory data layer** and *Ignored* in **HDF5 Data layer**. I have also noticed that there is a separate *transform* function for \r\n* **Datum** (used by lmdb backed) \r\n* **OpenCV Mat** ( used by memory data layer - > addMatVector ) \r\n* **Caffe Blobs** ( which, i think, can be used along with hdf5 data layer )\r\n\r\n\r\nIs there a possibility in combining everything by adding Transformation as a layer? \r\nThis will enable us to apply transformations to in-memory 4D array using OpenCV, Magick++, etc. with just a reference to the memory blob ( OpenCV also supports GPU ops (using *CUDA* and *OpenCL* which can help batch processing ).\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/127080644","html_url":"https://github.com/BVLC/caffe/issues/2840#issuecomment-127080644","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/2840","id":127080644,"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":"2015-08-02T22:59:55Z","updated_at":"2015-08-02T22:59:55Z","body":":+1:"}}