|
a |
|
b/README.md |
|
|
1 |
# Autoposture |
|
|
2 |
Video-based Musculoskeletal Risk Assessment: Predictive Software for Evaluating Musculoskeletal Disorders |
|
|
3 |
|
|
|
4 |
## Important: |
|
|
5 |
- Clone this repo with --recurse-submodules |
|
|
6 |
- Download the Pose Estimation pre-trained model from [here](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-w6-pose.pt) |
|
|
7 |
- Download the autoposture pre-trained module latest release from [releases](https://github.com/Cesarmosqueira/Autoposture/releases) |
|
|
8 |
|
|
|
9 |
Or just run: |
|
|
10 |
``` |
|
|
11 |
git clone https://github.com/Cesarmosqueira/Autoposture --recurse-submodules |
|
|
12 |
cd Autoposture |
|
|
13 |
wget -P src_models/ https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-w6-pose.pt |
|
|
14 |
wget -P src_models/ https://github.com/Cesarmosqueira/Autoposture/releases/download/v1.0.0/autoposture-model.h5 |
|
|
15 |
``` |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
## Pre-Execution Checklist: |
|
|
19 |
- For Windows users: Ensure you run the setup and execution commands as an administrator. |
|
|
20 |
- Navigate to the cloned Autoposture repository directory before proceeding. |
|
|
21 |
- Have two terminal windows open, both in the repo. One for the client and one for the service |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
## Run the api in one terminal: |
|
|
25 |
``` |
|
|
26 |
docker pull cesarmosqueira/autoposture_api |
|
|
27 |
docker-compose -f prediction_api/docker-compose.yaml up |
|
|
28 |
``` |
|
|
29 |
For linux users: If you can't execute the second command and you get something with: `Permission Denied`, run it as administrator |
|
|
30 |
|
|
|
31 |
## Run client in another terminal: |
|
|
32 |
``` |
|
|
33 |
pip install -r requirements.txt |
|
|
34 |
python start.py |
|
|
35 |
``` |
|
|
36 |
- view-img: enables the live display |
|
|
37 |
|
|
|
38 |
#### Remember |
|
|
39 |
- Windows Users: Run commands as administrator. |
|
|
40 |
- Webcam Devices: List available devices with v4l2-ctl --list-devices. |
|
|
41 |
- Ensure Docker API service is active before starting the client. |