We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
During the running of iris_classification_2.ipynb got an error:
TypeError Traceback (most recent call last) f:\repo\Iris-Recognition-CASIA-Iris-Thousand\iris_classification_2.ipynb Cell 7 line 8 5 from keras.applications.xception import Xception 7 #original_model = VGG16(include_top=False) ----> 8 original_model = DenseNet201(include_top="False") 9 #original_model = InceptionV3(include_top=False) 10 #original_model = InceptionResNetV2(include_top=False) 11 #original_model = Xception(include_top=False) 13 bottleneck_input = original_model.get_layer(index=0).input
File c:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\applications\densenet.py:408, in DenseNet201(include_top, weights, input_tensor, input_shape, pooling, classes, classifier_activation) 395 @keras_export( 396 "keras.applications.densenet.DenseNet201", "keras.applications.DenseNet201" 397 ) (...) 405 classifier_activation="softmax", 406 ): 407 """Instantiates the Densenet201 architecture.""" --> 408 return DenseNet( 409 [6, 12, 48, 32], 410 include_top, 411 weights, 412 input_tensor, 413 input_shape, ... 68 def getitem(self, key): 69 """Retrieves item by the specified key.""" ---> 70 return self._values[key]
TypeError: list indices must be integers or slices, not str
The text was updated successfully, but these errors were encountered:
No branches or pull requests
During the running of iris_classification_2.ipynb got an error:
TypeError Traceback (most recent call last)
f:\repo\Iris-Recognition-CASIA-Iris-Thousand\iris_classification_2.ipynb Cell 7 line 8
5 from keras.applications.xception import Xception
7 #original_model = VGG16(include_top=False)
----> 8 original_model = DenseNet201(include_top="False")
9 #original_model = InceptionV3(include_top=False)
10 #original_model = InceptionResNetV2(include_top=False)
11 #original_model = Xception(include_top=False)
13 bottleneck_input = original_model.get_layer(index=0).input
File c:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\keras\applications\densenet.py:408, in DenseNet201(include_top, weights, input_tensor, input_shape, pooling, classes, classifier_activation)
395 @keras_export(
396 "keras.applications.densenet.DenseNet201", "keras.applications.DenseNet201"
397 )
(...)
405 classifier_activation="softmax",
406 ):
407 """Instantiates the Densenet201 architecture."""
--> 408 return DenseNet(
409 [6, 12, 48, 32],
410 include_top,
411 weights,
412 input_tensor,
413 input_shape,
...
68 def getitem(self, key):
69 """Retrieves item by the specified key."""
---> 70 return self._values[key]
TypeError: list indices must be integers or slices, not str
The text was updated successfully, but these errors were encountered: