Gogul09 / flower-recognition

🌺🌻 Using state-of-the-art pre-trained Deep Neural Net architectures for Flower Species Recognition
https://gogul09.github.io/software/flower-recognition-deep-learning
MIT License
159 stars 101 forks source link

ValueError: No such layer: custom #4

Closed sriramnagaraj closed 6 years ago

sriramnagaraj commented 6 years ago

Hello, I get the following error when I run 'extract_features.py'

Using TensorFlow backend. [STATUS] start time - 2018-01-17 18:41 2018-01-17 18:41:56.202633: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA Traceback (most recent call last): File "extract_features.py", line 65, in model = Model(input=base_model.input, output=base_model.get_layer('custom').output) File "/Users/sriram/tensorflow/lib/python2.7/site-packages/keras/engine/topology.py", line 1887, in get_layer raise ValueError('No such layer: ' + name) ValueError: No such layer: custom

After checking out on internet, I found out that we can create custom layers. Is there any simple alternative solution? I am trying this out on MacBook pro.

sriramnagaraj commented 6 years ago

Replace 'custom' with 'batch_normalization_1' in the extract_features.py

Huixxi commented 6 years ago

Replace 'custom' with 'batch_normalization_1' in the extract_features.py

No such layer: batch_normalization_1

neenu05 commented 5 years ago

Replace 'custom' with 'batch_normalization_1' in the extract_features.py

No such layer: batch_normalization_1

same error after running th code how to solve it??...

mehrezboulares commented 5 years ago

ValueError: No such layer: batch_normalization_1 . ?????? please how to resolve it ?