kitooo commited on
Commit
e860cac
·
verified ·
1 Parent(s): bd2491f

updated app

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
10
  model_config = SamConfig.from_pretrained("facebook/sam-vit-base")
11
  processor = SamProcessor.from_pretrained('facebook/sam-vit-base')
12
  model = SamModel(config=model_config)
13
- model.load_state_dict(torch.load("/content/drive/MyDrive/Project/sidewalk_model_epoch10.pth"))
14
  model.to(device)
15
 
16
  def segment_sidewalk(image, threshold):
 
10
  model_config = SamConfig.from_pretrained("facebook/sam-vit-base")
11
  processor = SamProcessor.from_pretrained('facebook/sam-vit-base')
12
  model = SamModel(config=model_config)
13
+ model.load_state_dict(torch.load("kitooo/sidewalk-seg-base"))
14
  model.to(device)
15
 
16
  def segment_sidewalk(image, threshold):