Run this model with HF Jobs
Run HanzoHuang/YOLOv10-RKNN2-Ultralytics on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/HanzoHuang/YOLOv10-RKNN2-Ultralytics. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/HanzoHuang/YOLOv10-RKNN2-Ultralytics on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use HanzoHuang/YOLOv10-RKNN2-Ultralytics with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- YOLOv10
How to use HanzoHuang/YOLOv10-RKNN2-Ultralytics with YOLOv10:
from huggingface_hub import hf_hub_download from ultralytics import YOLOv10 # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("HanzoHuang/YOLOv10-RKNN2-Ultralytics", "<weights>.pt") model = YOLOv10(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Improve model card and surface related exports
Browse files11 unmodified lines12131415161718192021222324252627282930313233343511 unmodified lines# YOLOv10-RKNN2-UltralyticsUltralytics export for RK3576 and RK3588. YOLOv10 n, s, m, b, l, and x in FP16 and INT8 for RK3576 and RK3588. Choose a model under `models/v2.3.2/detect/<variant>/<chip>/<precision>/` and download both `model.rknn` and `metadata.yaml`.These files were converted from the official Ultralytics assets. The Ultralytics exporter and RKNN Toolkit2 changed the model format and, for INT8, quantized the graph. The RKNN exports and original checkpoints are distributed under AGPL-3.0. See [LICENSE](LICENSE) and [checkpoint origins](source/weights.json).## Reproduce the conversionThe exact input checkpoints, conversion scripts, package versions, and calibration hashes are in [source](tree/main/source). The Ultralytics 8.4.184 source distribution is available on [PyPI](https://pypi.org/project/ultralytics/8.4.184/#files). The converter uses [RKNN Toolkit2 2.3.2](https://github.com/airockchip/rknn-toolkit2/tree/v2.3.2), available separately from Rockchip.Run `python source/convert-model.py source/weights/yolov10n.pt --chip rk3588 --precision fp16 --imgsz 640 --output yolov10n-rk3588`. For INT8, use `--precision int8 --data /path/to/coco128.yaml --calibration-limit 128`. The calibration manifest links to the source images. Point the YAML at the extracted COCO128 tree and its train2017 image directory.The [model manifest](manifest.json) records file hashes, precision, and input size.### INT8 detectionUse the `metadata.yaml` from the same INT8 model folder. The detector outputs normalized box coordinates, so the app needs `coordinates: normalized`. Import both files together in the warehouse. For the CLI, keep them in the same directory. Interpreting the coordinates as pixels can result in no boxes.Models are organized by RKNN Toolkit2 version under `models/v<version>/`. Each model and its metadata share a folder.## Related RKNN exportsThis repository uses the Ultralytics export workflow. For the Rockchip Model Zoo conversion, see [YOLOv10-RKNN2](https://huggingface.co/HanzoHuang/YOLOv10-RKNN2).11 unmodified lines1213141516171819202122232425262728293031323334353637383940414243444511 unmodified lines# YOLOv10-RKNN2-Ultralytics> **Looking for the Rockchip Model Zoo and custom exports?** See [YOLOv10-RKNN2](https://huggingface.co/HanzoHuang/YOLOv10-RKNN2).RKNN exports of Ultralytics YOLOv10 for **RK3576** and **RK3588**, compiled with RKNN Toolkit2 2.3.2. Detection variants n, s, m, b, l, and x are available in FP16 and INT8.## Choose a modelModels are organized by toolkit version, task, variant, target chip, and precision:```textmodels/v<toolkit-version>/<task>/<variant>/<chip>/<precision>/```Download `model.rknn` and `metadata.yaml` from the same directory. The [manifest](manifest.json) lists the available models and checksums.## INT8 detectionUse the `metadata.yaml` from the same model directory. INT8 detection outputs normalized box coordinates and requires `coordinates: normalized`. Import both files together in the warehouse, or keep them in the same directory for the CLI. Treating normalized coordinates as pixels can result in no boxes.## Reproduce the conversionThe [source directory](tree/main/source) contains the input checkpoints, conversion scripts, package versions, and calibration hashes. The export used [Ultralytics 8.4.184](https://pypi.org/project/ultralytics/8.4.184/#files) and [RKNN Toolkit2 2.3.2](https://github.com/airockchip/rknn-toolkit2/tree/v2.3.2).```bashpython source/convert-model.py source/weights/yolov10n.pt --chip rk3588 --precision fp16 --imgsz 640 --output yolov10n-rk3588```For INT8, use `--precision int8 --data /path/to/coco128.yaml --calibration-limit 128`. Point the YAML at the extracted COCO128 tree and its `train2017` image directory. The calibration manifest links to the source images.## Source and licenseThe inputs are official Ultralytics checkpoints. Conversion changes the format and quantizes the INT8 graph. The RKNN exports and original checkpoints are distributed under AGPL-3.0; see [LICENSE](LICENSE) and [checkpoint origins](source/weights.json).
README.md+21-11