ybhavsar2009 commited on
Commit
f3467d4
·
verified ·
1 Parent(s): be43ea2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,6 +1,5 @@
1
- %cd /content/segment-anything-2
2
-
3
  import os
 
4
  import urllib.request
5
 
6
  model_urls = {
@@ -65,7 +64,7 @@ from termcolor import colored # for colored text output
65
  %matplotlib inline
66
  %config InlineBackend.figure_format='retina'
67
 
68
- %cd /content/segment-anything-2
69
 
70
  from sam2.build_sam import build_sam2
71
  from sam2.sam2_image_predictor import SAM2ImagePredictor
 
 
 
1
  import os
2
+ os.chdir("segment-anything-2")
3
  import urllib.request
4
 
5
  model_urls = {
 
64
  %matplotlib inline
65
  %config InlineBackend.figure_format='retina'
66
 
67
+ os.chdir("segment-anything-2")
68
 
69
  from sam2.build_sam import build_sam2
70
  from sam2.sam2_image_predictor import SAM2ImagePredictor