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 722910c commit a24ab6aCopy full SHA for a24ab6a
python/main.py
@@ -330,7 +330,7 @@ def load_model() -> MedsamLite:
330
mask_decoder=medsam_lite_mask_decoder,
331
prompt_encoder=medsam_lite_prompt_encoder,
332
)
333
- medsam_dir = Path(__file__).parent / "templates" / "lite_medsam.pth"
+ medsam_dir = Path(__file__).parent / "prm" / "lite_medsam.pth"
334
medsam_lite_checkpoint = torch.load(medsam_dir, map_location="cpu")
335
medsam_model.load_state_dict(medsam_lite_checkpoint)
336
medsam_model.to("cpu")
0 commit comments