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
I am trying to calculate the dice coefficient using 2D-unet, however, I am getting the following error:
Using TensorFlow backend.
Traceback (most recent call last):
File "E:/2.U_Net_Humerus_Segmentation/U-Net/3D-brain-segmentation-master/2D-unet.py", line 235, in
compare()
File "E:/2.U_Net_Humerus_Segmentation/U-Net/3D-brain-segmentation-master/2D-unet.py", line 226, in compare
K.theano.shared(y_true),
AttributeError: module 'keras.backend' has no attribute 'theano'
The text was updated successfully, but these errors were encountered:
your problem is in the fact you apparently used some code from a repository using theano backend and added it to mine as the original file 2D-unet.py in this repository has only 203 lines and your error is on lines 235 and 226. I suggest you to find tensorflow implementation for you problem.
Hi Kolarik,
Thank you very much for your reply.
I am sorry for the late reply.
Due to the state of emergency, our lab is now closed.
I will study on your suggestion.
Thank you.
Best regards
*------------------------------*
*Fahad Parvez Mahdi*
PhD Student
On Fri, Apr 10, 2020 at 7:03 AM Martin Kolarik ***@***.***> wrote:
Hi FahadMahdi,
your problem is in the fact you apparently used some code from a
repository using theano backend and added it to mine as the original file
2D-unet.py in this repository has only 203 lines and your error is on lines
235 and 226. I suggest you to find tensorflow implementation for you
problem.
Take care,
mrkolarik
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJUT4HHRDXHOJGGG6OP7YHDRLZA2HANCNFSM4LXG2TLQ>
.
I am trying to calculate the dice coefficient using 2D-unet, however, I am getting the following error:
Using TensorFlow backend.
Traceback (most recent call last):
File "E:/2.U_Net_Humerus_Segmentation/U-Net/3D-brain-segmentation-master/2D-unet.py", line 235, in
compare()
File "E:/2.U_Net_Humerus_Segmentation/U-Net/3D-brain-segmentation-master/2D-unet.py", line 226, in compare
K.theano.shared(y_true),
AttributeError: module 'keras.backend' has no attribute 'theano'
The text was updated successfully, but these errors were encountered: