yunkai1841 commited on
Commit
bb68b12
1 Parent(s): 1264129

fix lfs pull for models

Browse files
Files changed (2) hide show
  1. app.py +8 -0
  2. packages.txt +2 -1
app.py CHANGED
@@ -17,6 +17,14 @@ def init():
17
  "make",
18
  cwd=darknetpath,
19
  )
 
 
 
 
 
 
 
 
20
  global models
21
  models = json.load(open(os.path.join(modelpath, "path.json")))
22
  global modellist
 
17
  "make",
18
  cwd=darknetpath,
19
  )
20
+ subprocess.run(
21
+ "git lfs install",
22
+ cwd=modelpath,
23
+ )
24
+ subprocess.run(
25
+ "git lfs pull",
26
+ cwd=modelpath,
27
+ )
28
  global models
29
  models = json.load(open(os.path.join(modelpath, "path.json")))
30
  global modellist
packages.txt CHANGED
@@ -1 +1,2 @@
1
- libopencv-dev
 
 
1
+ libopencv-dev
2
+ git-lfs