MedicineToken / Medical-SAM2

Medical SAM 2: Segment Medical Images As Video Via Segment Anything Model 2
Apache License 2.0
431 stars 55 forks source link

Save weight test issue #47

Open sove45 opened 3 weeks ago

sove45 commented 3 weeks ago

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 commented 3 weeks ago

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

zly011011 commented 2 days ago

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