If the cloning repository takes too long, try downloading only the latest version with
git clone --depth 1 https://github.com/jpdonasolo/CSC_51073_EP-Computer-Vision-Final-Project.git
This will ignore heavy videos that were uploaded in previous commits.
This project uses uv as a package manager. You can download it here.
IF running from mac, please change the following line in src/workout_trackerworkout_tracker.py from
cap = cv2.VideoCapture(0)
to
cap = cv2.VideoCapture(0, cv2.CAP_AVFOUNDATION)
Then, run from the root directory:
uv run src/workout_tracker/workout_tracker.py
By default, the code will download and run the finetuned model. To use the pretrained model, just add --model pretrained.
PREDICTION_INTERVAL in src/workout_tracker/constants.py.
If you intend to run the finetuning code, make sure to follow these steps:
Finetuning downloads datasets from Kaggle using kagglehub. In order to work properly, your machine must have an autentication API token. You can read about it here.