Spaces:
Runtime error
Runtime error
NassimeBejaia
commited on
Commit
•
c8b0e99
1
Parent(s):
21bc984
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,12 @@ import cv2
|
|
10 |
import itertools
|
11 |
import sys
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
def load_model():
|
14 |
wpath = 'test_detection/yolov5/weights/crowdhuman_yolov5m.pt'
|
15 |
if not os.path.exists(wpath):
|
@@ -117,10 +123,11 @@ if __name__ == '__main__':
|
|
117 |
os.system("sys.path.insert(0, './test_detection/yolov5/models/')")
|
118 |
os.system("sys.path.insert(0, './test_detection/yolov5/')")
|
119 |
sys.path.insert(0, './yolov5')
|
120 |
-
|
121 |
sys.path.insert(0, './home/user/app/test_detection/yolov5')
|
122 |
sys.path.insert(0, '/home/user/app/test_detection/yolov5')
|
123 |
-
|
|
|
124 |
|
125 |
st.write(os.listdir('test_detection/yolov5/'))
|
126 |
|
|
|
10 |
import itertools
|
11 |
import sys
|
12 |
|
13 |
+
os.system("sys.path.insert(0, 'home/user/app/test_detection/yolov5')")
|
14 |
+
sys.path.insert(0, 'home/user/app/test_detection/yolov5')
|
15 |
+
|
16 |
+
os.system("sys.path.insert(0, 'home/user/app/test_detection/yolov5/models')")
|
17 |
+
sys.path.insert(0, 'home/user/app/test_detection/yolov5/models')
|
18 |
+
|
19 |
def load_model():
|
20 |
wpath = 'test_detection/yolov5/weights/crowdhuman_yolov5m.pt'
|
21 |
if not os.path.exists(wpath):
|
|
|
123 |
os.system("sys.path.insert(0, './test_detection/yolov5/models/')")
|
124 |
os.system("sys.path.insert(0, './test_detection/yolov5/')")
|
125 |
sys.path.insert(0, './yolov5')
|
126 |
+
|
127 |
sys.path.insert(0, './home/user/app/test_detection/yolov5')
|
128 |
sys.path.insert(0, '/home/user/app/test_detection/yolov5')
|
129 |
+
|
130 |
+
|
131 |
|
132 |
st.write(os.listdir('test_detection/yolov5/'))
|
133 |
|