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 376125d commit dd61633Copy full SHA for dd61633
micro_sam/util.py
@@ -394,7 +394,7 @@ def get_sam_model(
394
# To get the model weights, we prioritize having the correct 'checkpoint_path' over 'model_type'
395
# It is done to avoid strange parameter mismatch issues while incompatible model type and weights combination.
396
from micro_sam.models.build_sam import _validate_model_type
397
- _provided_model_type = _validate_model_type(state)
+ _provided_model_type = _validate_model_type(model_state)
398
399
# Verify whether the 'abbreviated_model_type' matches the '_provided_model_type'
400
# Otherwise replace 'abbreviated_model_type' with the later.
0 commit comments