jahongir7174
YOLOv8-qat
Python

Quantization Aware Training

Last updated Jun 27, 2026
94
Stars
18
Forks
10
Issues
0
Stars/day
Attention Score
10
Language breakdown
No language data available.
โ–ธ Files click to expand
README

Quantization Aware Training Implementation of YOLOv8 without DFL using PyTorch

Installation

conda create -n YOLO python=3.8
conda activate YOLO
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
pip install opencv-python==4.5.5.64
pip install PyYAML
pip install tqdm

Train

  • Configure your dataset path in main.py for training
  • Run bash main.sh $ --train for training, $ is number of GPUs

Test

  • Configure your dataset path in main.py for testing
  • Run python main.py --test for testing

Results

| Version | Epochs | Box mAP | CPU Latency | Download | |:-------:|:------:|--------:|------------:|---------------------------:| | v8n | 20 | 33.4 | 13 ms | model | | v8_n* | 500 | 37.3 | 24 ms | - | | v8_s* | 500 | 44.9 | - | | v8_m* | 500 | 50.2 | - | | v8_l* | 500 | 52.9 | - | | v8_x* | 500 | 53.9 | - |

means that it is float precision, see reference

Dataset structure

โ”œโ”€โ”€ COCO โ”œโ”€โ”€ images โ”œโ”€โ”€ train2017 โ”œโ”€โ”€ 1111.jpg โ”œโ”€โ”€ 2222.jpg โ”œโ”€โ”€ val2017 โ”œโ”€โ”€ 1111.jpg โ”œโ”€โ”€ 2222.jpg โ”œโ”€โ”€ labels โ”œโ”€โ”€ train2017 โ”œโ”€โ”€ 1111.txt โ”œโ”€โ”€ 2222.txt โ”œโ”€โ”€ val2017 โ”œโ”€โ”€ 1111.txt โ”œโ”€โ”€ 2222.txt

Reference

  • https://github.com/ultralytics/yolov5
  • https://github.com/ultralytics/ultralytics

ยฉ 2026 GitRepoTrend ยท jahongir7174/YOLOv8-qat ยท Updated daily from GitHub