You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data type or ValueError: Input 0 of layer max_pooling2d is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: [None, None, None, None, 16]
#2
Open
katiejx opened this issue
Jan 22, 2021
· 0 comments
Hi @JielongZ !
Thank you very much for your very well organized code.
I 'm quite new to python and I am trying to implement unet on my dataset of medical images. I would like to ask if you could give me information about the data type that you used to train the unet model. Would that be easy for you to please give a sample image from your training set?
I am asking this because when I try to run unet_keras.py on my data (after changing the paths in lines 15, 16 and 75), I get the following warning and error after executing line 87 (model.fit_generator):
WARNING:tensorflow:Model was constructed with shape (None, 512, 512, 1) for input Tensor("input_1:0", shape=(None, 512, 512, 1), dtype=float32), but it was called on an input with incompatible shape (None, None, None, None, None).
ValueError: Input 0 of layer max_pooling2d is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: [None, None, None, None, 16]
I have the following packages installed (all versions greater than the ones you suggest):
tensorflow-gpu==2.3.1
keras==2.4.3
scikit-image==0.16.2
tqdm==4.47.0
numpy==1.18.5
Grateful for any possible help, thank you in advance.
The text was updated successfully, but these errors were encountered:
Hi @JielongZ !
Thank you very much for your very well organized code.
I 'm quite new to python and I am trying to implement unet on my dataset of medical images. I would like to ask if you could give me information about the data type that you used to train the unet model. Would that be easy for you to please give a sample image from your training set?
I am asking this because when I try to run
unet_keras.py
on my data (after changing the paths in lines 15, 16 and 75), I get the following warning and error after executing line 87 (model.fit_generator
):I have the following packages installed (all versions greater than the ones you suggest):
tensorflow-gpu==2.3.1
keras==2.4.3
scikit-image==0.16.2
tqdm==4.47.0
numpy==1.18.5
Grateful for any possible help, thank you in advance.
The text was updated successfully, but these errors were encountered: