I want to use mxnet Image API to load grayscale png file. But Image API became 3channel RGB data. How to convert from 3channel data to 1channel data?
Asked
Active
Viewed 293 times
1 Answers
1
You can use imdecode function and set flag with 0. https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/image/image.py#L85
This will require you install opencv and compile mxnet with USE_OPENCV=1

user3782250
- 69
- 1
-
Can I use imgdecode with mxnet.image.ImageDetIter with aug_list parameter? – user2850652 Aug 16 '17 at 02:30