This folder contains the training and export pipeline for the current FormFit movement-quality model work.
-
CNN.pyTrains a 1D convolutional network on rep-window motion data, evaluates it, prints sample feedback, and exports a Core ML package. -
formfit-data/Split repetition CSV files used for the current training workflow. -
formfit-labels.csvLabels aligned to the split rep sessions. -
best_model.pthSaved PyTorch checkpoint from training. -
training_history.pngLoss curve generated from a training run. -
FormFitModel.mlpackage/Exported Core ML package for downstream Apple-platform integration.
python3 -m pip install -r requirements.txtpython3 CNN.pyThe script is configured to:
- load data relative to its own directory
- save the best PyTorch weights locally
- save the training curve as an image
- export the Core ML package locally
Each rep window is built from nine motion channels:
ax,ay,azgx,gy,gzroll,pitch,yaw
The current model focuses on three movement-quality signals:
- elbow hiking
- shoulder hiking
- torso twist
The pipeline also folds eccentric timing into the reported feedback score during evaluation.