Medical-SAM2 icon indicating copy to clipboard operation
Medical-SAM2 copied to clipboard

Unable to finetune

Open clararodrigo opened this issue 8 months ago • 0 comments

Hello, I am trying to further finetune MedSAM2 as I have quite a niche imaging application. I have set the model to training mode by doing: predictor.train(True) predictor.sam_mask_decoder.train() However, the loss never goes down and when I print out the gradient of all weights in the model, all are None. Of course, I am doing: optimiser.zero_grad() loss.backward() optimiser.step()

I would greatly appreciate any help to make my model learn, thanks in advance.

Clara

clararodrigo avatar Apr 28 '25 10:04 clararodrigo