You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the excellent code.
I would like to know if incremental training is possible with SAM2-Unet.
I tried using the checkpoint 'SAM2-UNet-xx.pth' as input for 'hiera_path' in the train.py but I encountered the following errors:
File "D:\MyProjects\SAM2-UNet\sam2\build_sam.py", line 81, in _load_checkpoint
sd = torch.load(ckpt_path, map_location="cpu")["model"]
KeyError: 'model'
I hope to perform incremental training on my model. For example, I collected data A and trained a model this time. Later, I want to build on that model to train with data B. What are some good suggestions for this process?"
The text was updated successfully, but these errors were encountered:
Hi, the parameter --hiera-path is set to None (see test.py) when performing testing or incremental training, as the encoder parameters have been overwritten and saved in the new checkpoint. Our original code does not support resuming training. Please refer to issue #20 for guidance on how to perform incremental training. Additionally, since you are continue training on a different dataset, you may only need to save the model's 'state_dict'.
Hi,
Thank you for the excellent code.
I would like to know if incremental training is possible with SAM2-Unet.
I tried using the checkpoint 'SAM2-UNet-xx.pth' as input for 'hiera_path' in the train.py but I encountered the following errors:
I hope to perform incremental training on my model. For example, I collected data A and trained a model this time. Later, I want to build on that model to train with data B. What are some good suggestions for this process?"
The text was updated successfully, but these errors were encountered: