forked from VNOpenAI/pushup-counter-app
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.py
24 lines (20 loc) · 841 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from daisykit.utils import get_asset_file
DEFAULT_VIDEO_PATH = 0 # 0 for webcam, or path to video file
DAISYKIT_HUMAN_POSE_FLOW_CONFIG = config = {
"person_detection_model": {
"model": get_asset_file("models/human_detection/ssd_mobilenetv2.param"),
"weights": get_asset_file("models/human_detection/ssd_mobilenetv2.bin"),
"input_width": 320,
"input_height": 320,
"use_gpu": False
},
"human_pose_model": {
"model": get_asset_file("models/human_pose_detection/movenet/lightning.param"),
"weights": get_asset_file("models/human_pose_detection/movenet/lightning.bin"),
"input_width": 192,
"input_height": 192,
"use_gpu": False
}
}
ACTION_RECOGNITION_MODEL_PATH = "trained_models/action-recognition-mobilenetv2-2020-12-14.h5"
PUSHUP_THRESH = 0.9