init project
Browse files- modules/pe3r/models.py +1 -1
modules/pe3r/models.py
CHANGED
|
@@ -28,7 +28,7 @@ class Models:
|
|
| 28 |
|
| 29 |
# -- mobilesamv2 & sam1 --
|
| 30 |
# SAM1_ENCODER_CKP = './checkpoints/sam_vit_h.pt'
|
| 31 |
-
SAM1_ENCODER_CKP = 'facebook/sam-vit-huge'
|
| 32 |
SAM1_DECODER_CKP = './checkpoints/Prompt_guided_Mask_Decoder.pt'
|
| 33 |
self.mobilesamv2 = sam_model_registry['sam_vit_h'](None)
|
| 34 |
image_encoder=sam_model_registry['sam_vit_h_encoder'](SAM1_ENCODER_CKP)
|
|
|
|
| 28 |
|
| 29 |
# -- mobilesamv2 & sam1 --
|
| 30 |
# SAM1_ENCODER_CKP = './checkpoints/sam_vit_h.pt'
|
| 31 |
+
SAM1_ENCODER_CKP = 'facebook/sam-vit-huge/model.safetensors'
|
| 32 |
SAM1_DECODER_CKP = './checkpoints/Prompt_guided_Mask_Decoder.pt'
|
| 33 |
self.mobilesamv2 = sam_model_registry['sam_vit_h'](None)
|
| 34 |
image_encoder=sam_model_registry['sam_vit_h_encoder'](SAM1_ENCODER_CKP)
|