kcnet-vision: vision model pool

Detection and generative vision weights trained in this project for on-device and desktop use. Detection runs real time on a Raspberry-class board; the generative models cover anime face synthesis and fast style transfer.

Overview

This repository collects the vision artifacts we train or fine-tune ourselves, as opposed to upstream checkpoints we merely consume. Two tracks:

  • Detection. A YOLO26n multi-task detector for robot vision (37 classes at 416 px), exported to ONNX for desktop and to OpenVINO INT8 for the Pi, plus a smaller construction-PPE variant.
  • Generative. Anime StyleGAN2 generators at 64 and 128 px, and an AdaIN style-transfer decoder trained with a perceptual (LPIPS) objective.

The measurement discipline is deliberately asymmetric: detection has a published mAP ledger that anyone can audit, the generative models currently have none. Where a number is missing this card says so instead of quoting a neighbour's benchmark.

Repository contents

Artifact Size Format Purpose
yolo/yolo26n_multi_task_best.onnx 9.7 MB ONNX fp32 Desktop / server inference, 37-class robot vision at 416 px
yolo/yolo26n_multi_task_best.pt 5.4 MB PyTorch Training checkpoint behind the ONNX export
yolo/yolo26n_multi_task_best_int8.onnx 2.8 MB ONNX INT8 Quantized variant for low-memory hosts
yolo/best_yolo26n_multi_task.pt 5.4 MB PyTorch Alias kept for existing scripts; identical to the checkpoint above
yolo/yolo26n_cppe5_aug416_best.onnx / .pt 9.7 MB / 5.4 MB ONNX / PyTorch Construction-PPE 5-class detector, 416 px, augmentation-heavy recipe
yolo/deploy_metrics.json 2.6 KB JSON Per-run mAP ledger (16 runs), current deploy pointer
yolo/yolo26n_multi_task_manifest.json 1 KB JSON Export contract: image size, runtimes, targets
anime_gan/anime_stylegan2_128_r1_run02_best.pt 74.7 MB PyTorch Anime StyleGAN2, 128 px
anime_gan/anime_stylegan2_128_r1_run03_best.pt 74.7 MB PyTorch Second 128 px run, kept for comparison
anime_gan/anime_stylegan2_64_run01_step600.pt 9.8 MB PyTorch Anime StyleGAN2, 64 px, early checkpoint
style_transfer/adain_coco_wikiart_run0{1,2,3}*.pt ~42 MB each PyTorch AdaIN decoder: 400-step, 5k-step and 10k-step LPIPS-selected runs

Quick start

# Detection: ONNX runtime, 416 px input
import onnxruntime as ort, numpy as np

session = ort.InferenceSession("yolo/yolo26n_multi_task_best.onnx")
outputs = session.run(None, {session.get_inputs()[0].name: np.zeros((1, 3, 416, 416), np.float32)})
# Detection: the PyTorch checkpoint with the Ultralytics trainer
from ultralytics import YOLO

model = YOLO("yolo/yolo26n_multi_task_best.pt")
model.predict("frame.jpg", imgsz=416)

On the Pi, export once and serve through OpenVINO:

python -m ultralytics export model=yolo/yolo26n_multi_task_best.pt format=openvino int8=True imgsz=416

Artifacts

YOLO26n multi-task detector

Property Value
Input 416 x 416, RGB
Classes 37 (robot-vision label set)
Runtime ONNX Runtime on desktop, OpenVINO INT8 on the Pi
mAP50 (published deploy run) 0.9283 (run 13 of 16 in deploy_metrics.json)
mAP50 target 0.95 β€” not reached; runs 15-17 regressed, iteration paused at the best run
Scenario AP PPE 0.710 (target 0.75), digit 0.995
Pi target 25 FPS at INT8

The full per-run ledger ships in the repository rather than a cherry-picked number: 16 runs, legacy_map50 between 0.656 and 0.928, with a published flag per run. Anyone can check which runs were rejected.

Construction-PPE detector

Five-class PPE detector at 416 px with an augmentation-heavy recipe. It is the narrower, easier-to-validate sibling used to check the pipeline end to end before multi-task runs.

Anime StyleGAN2

128 px and 64 px generators. Three checkpoints are kept: two 128 px runs for comparison and one 64 px early checkpoint. No FID or other metric is published β€” the selection was visual, and claiming a number we did not measure would be worse than admitting it.

AdaIN style transfer

Decoder trained on COCO content with WikiArt styles, selected by LPIPS across three runs (400 steps, 5k steps, 10k steps). Same honesty rule as above: no published metric, only the training-step provenance in the filenames.

Intended use

  • On-device robot and camera pipelines where a cloud round-trip is not acceptable.
  • Baselines for 416 px real-time detection on constrained hardware.
  • Anime face generation experiments and stylisation of photos at interactive speed.

Out of scope

  • Safety-critical perception (medical, automotive ADAS, industrial guarding).
  • Face recognition, identification of people, or demographic analysis.
  • Commercial redistribution of the YOLO-derived weights without checking the upstream Ultralytics license terms (they are not permissive for all uses).

Limitations

  • The 37-class detector is trained for a specific robot scene; it does not generalise to COCO. The COCO entry in the ledger is 0.0 for runs that were not evaluated on COCO, not a failure.
  • INT8 exports were calibrated for the deployment scene; re-validate if you change the domain.
  • The 64 px GAN produces very low-resolution faces and was kept for continuity, not for quality.
  • No CLIP/FID/LPIPS numbers are published for the generative models, so they should not be compared against papers.

License and provenance

Mixed. The YOLO26n detectors derive from Ultralytics YOLO and inherit its AGPL-3.0 terms β€” check them before any redistribution. The StyleGAN2 and AdaIN weights were trained in this project; anime data came from public face corpora and COCO/WikiArt for style transfer. No upstream checkpoint is redistributed here except as fine-tuned derivatives.

Downloads last month
299
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support