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

Save weight test issue

Open sove45 opened this issue 1 year ago • 2 comments

I used train3d.py for training, saved the weights after training, and then loaded them. We found that regardless of which parameters I set as trainable, the network converged based on the training loss results. However, the results from the saved model during testing were always the same.

sove45 avatar Sep 27 '24 07:09 sove45

image No matter what model I input, the saved model’s weights are exactly the same as the model right after initialization image

sove45 avatar Sep 27 '24 08:09 sove45

args中的sam_ckpt也要设置为你保存下来的权重路径,光设置pretrain好像不行

libalala avatar Oct 20 '24 11:10 libalala