Closed JingwenD closed 2 years ago
We used old versions of TensorFlow and Keras like below. tensorflow==2.0 keras==2.3 h5py<3.0.0 Please check your versions and try our google notebook. https://colab.research.google.com/drive/1WCfguKFN0Zs0ZDkKga2DpDgjBP3PnwB_?usp=sharing
When you test your model using PathCNN_GradCAM.py Your model should be like below.
Model: "model_1"
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_1 (InputLayer) (None, 146, 6, 1) 0
_________________________________________________________________
conv2d_1 (Conv2D) (None, 146, 6, 32) 320
_________________________________________________________________
conv2d_2 (Conv2D) (None, 146, 6, 64) 18496
_________________________________________________________________
max_pooling2d_1 (MaxPooling2 (None, 36, 3, 64) 0
_________________________________________________________________
dropout_1 (Dropout) (None, 36, 3, 64) 0
_________________________________________________________________
flatten_1 (Flatten) (None, 6912) 0
_________________________________________________________________
dense_1 (Dense) (None, 64) 442432
_________________________________________________________________
dropout_2 (Dropout) (None, 64) 0
_________________________________________________________________
dense_2 (Dense) (None, 2) 130
=================================================================
If you run the code using spyder or pycharm in the debug mode or some session like that. The model would be generated with increased numbering every time you restart. Please run the modeling code using run a script or run the script from a terminal.
Hi, I got an issue when running the PathCNN_GradCAM.py as follow:
I google this issue but still fail to fix it.
Best,
Jingwen