ch-tseng commited on
Commit
b61deaf
·
1 Parent(s): 5da8fea
Files changed (2) hide show
  1. app.py +3 -2
  2. config.py +1 -1
app.py CHANGED
@@ -17,8 +17,9 @@ from utils import load_model, infer_uploaded_image, infer_uploaded_video, infer_
17
  from download_gd import *
18
  import os
19
 
20
- if not os.path.exists('crowded_human_yolov8s.pt'):
21
- download_file_from_google_drive('1qCXBDy3YuxS9bqfRIc--cRLo1L3DAYq2', 'crowded_human_yolov8s.pt')
 
22
 
23
  # setting page layout
24
  st.set_page_config(
 
17
  from download_gd import *
18
  import os
19
 
20
+ if not os.path.exists('./crowded_human_yolov8s.pt'):
21
+ download_file_from_google_drive('1qCXBDy3YuxS9bqfRIc--cRLo1L3DAYq2', './crowded_human_yolov8s.pt')
22
+
23
 
24
  # setting page layout
25
  st.set_page_config(
config.py CHANGED
@@ -32,7 +32,7 @@ SOURCES_LIST = ["Image", "Video", "Webcam"]
32
  # DL model config
33
  DETECTION_MODEL_DIR = ROOT / 'models' / 'detection'
34
  #YOLOv8n = DETECTION_MODEL_DIR / "yolov8n.pt"
35
- YOLOv8s = 'crowded_human_yolov8s.pt'
36
  #YOLOv8m = DETECTION_MODEL_DIR / "yolov8m.pt"
37
  #YOLOv8l = DETECTION_MODEL_DIR / "yolov8l.pt"
38
  #YOLOv8x = DETECTION_MODEL_DIR / "yolov8x.pt"
 
32
  # DL model config
33
  DETECTION_MODEL_DIR = ROOT / 'models' / 'detection'
34
  #YOLOv8n = DETECTION_MODEL_DIR / "yolov8n.pt"
35
+ YOLOv8s = './crowded_human_yolov8s.pt'
36
  #YOLOv8m = DETECTION_MODEL_DIR / "yolov8m.pt"
37
  #YOLOv8l = DETECTION_MODEL_DIR / "yolov8l.pt"
38
  #YOLOv8x = DETECTION_MODEL_DIR / "yolov8x.pt"