JuanLozada97 commited on
Commit
c90b2b6
1 Parent(s): 5f6ce53

Change to vit b

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. model.py +0 -2
  3. sam_vit_b_01ec64.pth +3 -0
app.py CHANGED
@@ -15,7 +15,7 @@ from model import create_sam_model
15
 
16
  # 1.Setup variables
17
  device = "cuda" if torch.cuda.is_available() else "cpu"
18
- checkpoint = "medsam_vit_b.pth"
19
  model_type = "vit_b"
20
 
21
  # 2.Model preparation and load save weights
 
15
 
16
  # 1.Setup variables
17
  device = "cuda" if torch.cuda.is_available() else "cpu"
18
+ checkpoint = "sam_vit_b_01ec64.pth"
19
  model_type = "vit_b"
20
 
21
  # 2.Model preparation and load save weights
model.py CHANGED
@@ -1,7 +1,5 @@
1
 
2
- import matplotlib.pyplot as plt
3
  from segment_anything import sam_model_registry
4
- import torch.nn.functional as F
5
 
6
  def create_sam_model(model_type, checkpoint, device: str = "cpu"):
7
  medsam_model = sam_model_registry[model_type](checkpoint=checkpoint)
 
1
 
 
2
  from segment_anything import sam_model_registry
 
3
 
4
  def create_sam_model(model_type, checkpoint, device: str = "cpu"):
5
  medsam_model = sam_model_registry[model_type](checkpoint=checkpoint)
sam_vit_b_01ec64.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec2df62732614e57411cdcf32a23ffdf28910380d03139ee0f4fcbe91eb8c912
3
+ size 375042383