のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2019-04-16から1日間の記事一覧

keras vgg19 64x64と128x128と224x224のときの違い

from keras.preprocessing import image import keras.applications.vgg19 as vgg19 model = vgg19.VGG19(weights=None, input_shape=(64, 64, 3)) model.summary() _________________________________________________________________ Layer (type) Output…

ValueError: When setting `include_top=True` and loading `imagenet` weights, `input_shape` should be (224, 224, 3).

from keras.preprocessing import image import keras.applications.vgg19 as vgg19 model = vgg19.VGG19(weights='imagenet', input_shape=(64, 64, 3)) model.summary() --------------------------------------------------------------------------- Val…

input shape

input_shape: optional shape tuple, only to be specified if `include_top` is False (otherwise the input shape has to be `(224, 224, 3)` (with `channels_last` data format) or `(3, 224, 224)` (with `channels_first` data format). It should hav…