Closed moondra2017 closed 3 years ago
Can you write the python script that you ran which gives the error?
Sure, It"s a long script so I will try to create a reproducible version and paste it here. Thank you.
OK, Ive added the script Im using in the OP. Thank you.
Can you try to reduce the size of the script while preserving the bug? It's much easier to debug small scripts than big ones. Thanks!
Sorry for the late reply, Ive updated the OP with a self-contained example. The data being used is the cifar data set. With teh above code Im still running into the same error. Thank you.
Can you try with the latest version from master of keras and keras_applications? You can do it with pip install git+{url of the github repo here}
. Maybe it has already been fixed since 2.2.4.
Hi. I"m trying pip install https://github.com/keras-team/keras
but I"m running into this error:
Cannot unpack file C:\Users\yomog\AppData\Local\Temp\pip-unpack-lao25qho\keras (downloaded from C:\Users\yomog\AppData\Local\Temp\pip-req-build-rwmbrd1f, content-type: text/html; charset=utf-8); cannot detect archive format
I"m using Windows 10 btw. Thank you.
You need to use git+
.
Hi, so I"ve installed the lastest keras version following your instructions, and I"m still running into the same error.
Thanks! @taehoonlee can you please have a look? It seems there are problems with the imagenet weights in NasNet with include_top set to False.
I have the same problem!
@moondra2017, @erfaneshrati, The architectures of NASNetMobile
and NASNetLarge
differ depending on whether input_shape
is even or odd, while the architectures of the other networks are independent to input_shape
.
Currently, you must designate input_shape
as (224, 224, 3)
for NASNetMobile
or (331, 331, 3)
for NASNetLarge
. And now, the issue has been resolved in keras-team/keras-applications#62. The patch will be included in a new release.
I"m running into this error:
My keras version is:
>>> keras.__version__ '2.2.4'
`Tensorflow version:
Bascially, when the model tries to load I get this value error
ValueError: You are trying to load a weight file containing 532 layers into a model with 526 layers.
I"ve looked at this thread:
https://github.com/keras-team/keras/issues/10109
However, I"m trying to run the
no_top version
, so It shouldn't matter what my input vector is.base_model(weights='imagenet', include_top=False)
Thank you.
Here is the script Im using: