This repository contains a Jupyter Notebook that must be run alongside the SageMaker Image available at developer.sima.ai. The notebook walks through the following steps:
- Retraining YOLOv7 on a safety-related dataset.
- Exporting the trained model to ONNX.
- Performing "Surgery" on the ONNX model (graph manipulation).
- Quantizing the model.
- Compiling the model to create a binary for the Sima.ai MLSoC platform.
- Packaging and uploading the resulting
.tar.gzartifact to an S3 bucket.
- AWS account with permissions to use SageMaker.
- Access to the SageMaker Image from developer.sima.ai.
- An S3 bucket for uploading the final
.tar.gz.
-
Launch SageMaker Notebook:
- Select the Sima.ai image when creating a new SageMaker Notebook instance.
-
Clone this repository in your SageMaker environment:
git clone https://github.com/<your-username>/<your-repo-name>.git cd <your-repo-name>