2
私はCaffe
の例を見ると、常にチャンネルを入れ替えるようです。
その背後にある理由は何ですか?以下
はCaffeの分類exampleから取らexmapleです:CaffeのサンプルでRGBチャンネルを入れ替えたのはなぜですか?
transformer.set_transpose('data', (2,0,1)) # move image channels to outermost dimension
transformer.set_mean('data', mu) # subtract the dataset-mean value in each channel
transformer.set_raw_scale('data', 255) # rescale from [0, 1] to [0, 255]
transformer.set_channel_swap('data', (2,1,0)) # swap channels from RGB to BGR