Closed DecentMakeover closed 5 years ago
conv10 = Conv3D(3, (1, 1, 1), activation='relu', kernel_initializer=kinit,padding = 'same', name='final', data_format = 'channels_first')(conv9) activation_name = 'sigmoid' activation_block = Activation(activation_name)(conv10)
Your output has 3 channels, you may apply 'softmax' to compute probability for each class.
Hi @quqixun ,Thanks for the reply Changing activation from sigmoid to softmax does not work.
Hi @DecentMakeover, did you find a solution? I actually haven't tried 3D but will run your code sometime this week to see if I can debug
Hey , that’s okay , I have moved on from this now.
On 02-Aug-2019, at 8:47 PM, Nabila Abraham notifications@github.com<mailto:notifications@github.com> wrote:
Hi @DecentMakeoverhttps://github.com/DecentMakeover, did you find a solution? I actually haven't tried 3D but will run your code sometime this week to see if I can debug
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/nabsabraham/focal-tversky-unet/issues/8?email_source=notifications&email_token=AGD5QF6FNVOPVJ63T2ECWOTQCRFXXA5CNFSM4H2WVJTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3OBJEQ#issuecomment-517739666, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGD5QF3BB2AXHKLEJCUZ3XDQCRFXXANCNFSM4H2WVJTA.
Hi sorry to bother you with this but my model is not learning at all the loss stays the same after every epoch -0.3370
This is the model
def unet(input_shape=(128, 128, 128), optimizer=Adam, initial_learning_rate=5e-4, loss_function=weighted_dice_coefficient_loss):
And this is the helper function
And this is the loss function
My input is (128,128,128), am i doing an obvious mistake? Please let me know if more info needed.