curt-park commited on
Commit
b267f43
1 Parent(s): 8760721

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def load_mask_generator() -> SamAutomaticMaskGenerator:
29
  checkpoint = os.path.join(CHECKPOINT_PATH, CHECKPOINT_NAME)
30
  if not os.path.exists(checkpoint):
31
  urllib.request.urlretrieve(CHECKPOINT_URL, checkpoint)
32
- sam = sam_model_registry[MODEL_TYPE](checkpoint=CHECKPOINT_PATH).to(device)
33
  mask_generator = SamAutomaticMaskGenerator(sam)
34
  return mask_generator
35
 
 
29
  checkpoint = os.path.join(CHECKPOINT_PATH, CHECKPOINT_NAME)
30
  if not os.path.exists(checkpoint):
31
  urllib.request.urlretrieve(CHECKPOINT_URL, checkpoint)
32
+ sam = sam_model_registry[MODEL_TYPE](checkpoint=checkpoint).to(device)
33
  mask_generator = SamAutomaticMaskGenerator(sam)
34
  return mask_generator
35