らんだむな記憶

blogというものを体験してみようか!的なー

0.485, 0.456, 0.406 (2)

0.485, 0.456, 0.406 - らんだむな記憶で謎の正規化について触れた。
pytorch-tutorial/main.py at master · yunjey/pytorch-tutorial · GitHubにわりと気になるコメントがある。よく考えると転移学習を使うならモデルの訓練の前提に合わせるのが良いよなぁ。

Applications - Keras Documentationを見た感じだと keras.applications.vgg19 の場合だとkeras-applications/imagenet_utils.py at master · keras-team/keras-applications · GitHubにあるように

then will zero-center each color channel with respect to the ImageNet dataset,

してあげたらいいのかな?
keras-applications/imagenet_utils.py at master · keras-team/keras-applications · GitHubには PyTorch 用の設定らしきものが・・・。