tensorflow-resnet icon indicating copy to clipboard operation
tensorflow-resnet copied to clipboard

RGB or BGR

Open knmac opened this issue 8 years ago • 1 comments
trafficstars

When I load the trained models in the torrent files, do they work with RGB or BGR images? In 'convert.py', the image is converted from RGB to BGR (with 'preprocess()' function) after being loaded by skimage.io.imread(). However, this routine is not found in 'forward.py' (only loading routine is there).

knmac avatar Jan 20 '17 23:01 knmac

To me it looks like those commands are baked into the network loaded in forward. It does bgr to rgb, scaling, and mean subtraction.

danielgordon10 avatar Jan 24 '17 19:01 danielgordon10