Feed the ImageDataLayer with OpenCV images directly from memory#251
Conversation
|
Rebased and ready for being merged. |
|
@shelhamer, this has been rebased and tested again. Please invite a reviewer. Thanks! |
|
Squashed and tested. |
|
@shelhamer, this PR understands two things which #294 does not:
If this functionality is desired in caffe, it probably makes the most sense to generalize #294 in some way. |
|
@kloudkl could you resolve conflicts? I'd like to give it a try. |
|
@onauparc, you can try it now. |
|
The ImageDataLayer does a series of necessary pre-processing steps. The more general solution would probably have to wait until @Yangqing's new design is finalized. |
|
@shelhamer (and others): If I read correctly, this patch modifies This all seems a bit convoluted; we start with a I think this should be folded into @Yangqing's plan at #407 (comment). Of course, neither this (nor One can read from |
|
In the latest ImageDataLayer, the OpenCV images in the Mat format are transformed into Blobs directly and the source parameter doesn't have to be set anymore (#499 (comment)). Until now, the data layer refactoring project has made no observable progress. This PR is still the only available implementation to automatically transform the OpenCV images and pass them into the network. Would you please review this again and decide whether to merge or not? |
|
I think that this is one of the cases when a fresher PR charges some re-basing work to an older PR only because it was reviewed faster. I know that like other open source projects review are done best effort but I think that we could implement some little policy to incentive PR maintaining especially when we could have PR opened for months with cross impact. |
|
@bhack, now that #954 extracted the duplicated data transformations out of the old data layers, the purpose of this PR can be better achieved with the new DataTransformer and the MemoryDataLayer as @shelhamer suggested in #941. So this should be closed. |
|
@kloudkl If you want to remove this can you add a little doc on how to interface Opencv mat with MemoryDataLayer? |
|
Development continues in #995. |
The discussion of #196 led to the conclusion that the ImagesLayer (#120) by @sguada is more suitable for ingesting raw images. Following @Yangqing's suggestion, this PR extends ImagesLayer to accept OpenCV format images which are used by computer vision researchers and engineers very commonly.