Svdvoort / PrognosAIs_glioma

Predicting genetics and providing segmentation of glioma
Apache License 2.0
16 stars 1 forks source link

Gradients do not exist for variables ['sync_batch_normalization_8/gamma:0', 'sync_batch_normalization_8/beta:0', 'conv3d_21/kernel:0', 'conv3d_21/bias:0'] #6

Closed fahadahmedkhokhar closed 3 weeks ago

fahadahmedkhokhar commented 1 month ago

I am using your custom defined model for training of the data. But before training start following error shows. Can you please address this issue?

prognosais WARNING Gradients do not exist for variables ['sync_batch_normalization_8/gamma:0', 'sync_batch_normalization_8/beta:0', 'conv3d_21/kernel:0', 'conv3d_21/bias:0'] when minimizing the loss. If you're using model.compile(), did you forget to provide a loss argument?

Svdvoort commented 3 weeks ago

I would need some more information about what you are trying to do:

Based on this information my first two suggestions would be:

  1. Did you provide a loss in the model.compile() as suggested by the error message?
  2. Try lowering your learning learning rate, sometimes this can be the case as well.
fahadahmedkhokhar commented 3 weeks ago

I am using your custom_model.py file. I use the 0.001 learning rate as well but it doesn't work

Svdvoort commented 3 weeks ago

Closed in favor of #7