rezazad68 / BCDU-Net

BCDU-Net : Medical Image Segmentation
719 stars 265 forks source link

TypeError: ('Keyword argument not understood:', 'input') #16

Closed asifehmad closed 4 years ago

asifehmad commented 4 years ago

Hello, sir! I hope you are doing well. While training the model for the skin data set i came across this error:

TypeError: ('Keyword argument not understood:', 'input')

I am training on google colab; the error refers to: error pic

Your help in this regard would be highly appreciated. Looking forward for your kind response, Asif Ahmad

asifehmad commented 4 years ago

Hello, sir! I hope you are doing well. While training the model for the skin data set i came across this error:

TypeError: ('Keyword argument not understood:', 'input')

I am training on google colab; the error refers to: error pic

Your help in this regard would be highly appreciated. Looking forward for your kind response, Asif Ahmad

Just replaced

model = Model(input = inputs, output = conv9)

by

model = Model(inputs = inputs, outputs = conv9)

The error is gone now. I think it was due to new version of tensorflow.

asifehmad commented 4 years ago

Now closing the issue. Thank you so much for the work, sir!

nakulp21 commented 3 years ago

Hi, @AsifAhmadKhan, I'm also facing the same issue, but even after applying the your solution, I'm getting the same error.

nakulp21 commented 3 years ago

Hi, @AsifAhmadKhan, I'm also facing the same issue, but even after applying the your solution, I'm getting the same error.

Hey, I changed the code in the following manner and it worked for me. I changed model = Model(input = inputs, output=conv9)

to

model = Model(inputs, conv9)