- Python Environment: Make sure you have Python installed. It is recommended to use virtual environments.
- Libraries: Install the required libraries, including but not limited to:
- TensorFlow or PyTorch
- Keras
- OpenCV
- NumPY
This is the recommended folder structure for the project:
project_root/
├── ai-lab/
│ └── notebooks/
│ ├── sign_languagev2.ipynb
│ └── finetune_personal.ipynb
├── datasets/
│ ├── wlasl-processed/
│ └── asl-alphabet/
├── exports/
│ ├── model.onnx
│ └── model_meta.json
└── my_captures.json
- Download the Kaggle Datasets:
- Unzip and Place the Datasets in the
datasets/folder. - Open the Notebook: Launch
ai-lab/notebooks/sign_languagev2.ipynb. - Run the Cells sequentially, ensuring your data paths are correct.
- Expected Output: The model will be trained and saved. Look for the final model file, usually named
best_state.ptin the outputs.
- Prepare your Captures: Export your recordings as
my_captures.jsonfrom the RecordMode UI. - Open the Fine-Tuning Notebook: Launch
ai-lab/notebooks/finetune_personal.ipynb. - Run the Cells to fine-tune the same model with your custom captures.
- Expected Output: The fine-tuned model will weigh accordingly to give output results.
- After training and fine-tuning, export your model to the ONNX format.
- Files to Export:
model.onnxandmodel_meta.jsonshould be stored inpublic/models. - Commands to Execute: Use appropriate API calls or functions to save your models.
- Requirement of
best_state.pt: Ensure that this file is created after training. If not, revisit your training logs for errors. - Catastrophic Forgetting: Monitor validation loss/accuracy during training, and save checkpoints to avoid this issue.
- ONNX Single-File Removal: If facing issues, ensure you're exporting the model correctly as per ONNX requirements to avoid leaving deprecated .data files in the directory.
- Use
SEQ_LENGTH=16andN_FEATURES=63in model configurations to fit the requirements of your input signals and features count. - Refine the parameters as needed based on the dataset to enhance model performance.