wondervictor commited on
Commit
507a90d
1 Parent(s): 95bdec8

update sam2

Browse files
Files changed (3) hide show
  1. app.py +5 -1
  2. app.py.bak → app.py.v1 +0 -0
  3. requirements.txt +1 -2
app.py CHANGED
@@ -1,6 +1,11 @@
 
1
  import spaces
2
  from pip._internal import main
3
 
 
 
 
 
4
  main(['install', 'timm==1.0.8'])
5
  import timm
6
 
@@ -14,7 +19,6 @@ import torch
14
  import cv2
15
  import numpy as np
16
  import sys
17
- import os
18
  import tqdm
19
 
20
  version = "YxZhang/evf-sam2"
 
1
+ import os
2
  import spaces
3
  from pip._internal import main
4
 
5
+ os.system('cd model/segment_anything_2')
6
+ os.system('python setup.py build_ext --inplace')
7
+ os.system('cd ../../')
8
+
9
  main(['install', 'timm==1.0.8'])
10
  import timm
11
 
 
19
  import cv2
20
  import numpy as np
21
  import sys
 
22
  import tqdm
23
 
24
  version = "YxZhang/evf-sam2"
app.py.bak → app.py.v1 RENAMED
File without changes
requirements.txt CHANGED
@@ -32,5 +32,4 @@ torchscale
32
  gradio
33
  timm
34
  torch==2.0.1
35
-
36
-
 
32
  gradio
33
  timm
34
  torch==2.0.1
35
+ hydra-core