We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65ebd8b commit b1562c9Copy full SHA for b1562c9
micro_sam/training/training.py
@@ -848,14 +848,17 @@ def train_sam_for_configuration(
848
849
train_kwargs.update(**kwargs)
850
if train_instance_segmentation_only:
851
+ instance_seg_kwargs, extra_kwargs = split_kwargs(train_instance_segmentation, **train_kwargs)
852
+ model_kwargs, extra_kwargs = split_kwargs(get_sam_model, **extra_kwargs)
853
+ instance_seg_kwargs.update(**model_kwargs)
854
+
855
train_instance_segmentation(
856
name=name,
857
train_loader=train_loader,
858
val_loader=val_loader,
859
checkpoint_path=checkpoint_path,
- with_segmentation_decoder=with_segmentation_decoder,
860
model_type=model_type,
- **train_kwargs
861
+ **instance_seg_kwargs,
862
)
863
else:
864
train_sam(
0 commit comments