Official implementation of our paper:
βREG: Refined Generalized Focal Loss for Road Asset Detection on Thai Highways Using Vision-Based Detection and Segmentation Modelsβ
π IEEE KST 2025 | π¬ Teerapong Panboonyuen (Kao)
REG/ βββ src/ β βββ model.py # REG Loss + Multi-task Detection-Segmentation Model β βββ train.py # Training Pipeline β βββ inference.py # Inference Script β βββ metrics.py # Evaluation Metrics β βββ utils.py # Utility Functions βββ Dockerfile βββ requirements.txt βββ README.md
git clone https://github.com/kaopanboonyuen/REG.git cd REG pip install -r requirements.txt
docker build -t reg-road-assets .
python src/train.py \ --data-path ./data/ \ --batch 8 \ --epochs 50 \ --lr 1e-4
python src/inference.py \ --checkpoint ./checkpoints/best_model.pth \ --image-path ./images/test.jpg \ --output-path ./output/result.png
python src/metrics.py \ --pred-dir ./predictions/ \ --gt-dir ./ground_truth/
Metric | Value |
---|---|
mAP@50 | 80.34 |
F1-Score | 77.87 |
@inproceedings{panboonyuen2025reg, title={REG: Refined Generalized Focal Loss for Road Asset Detection on Thai Highways Using Vision Models}, author={Panboonyuen, Teerapong}, booktitle={2025 17th International Conference on Knowledge and Smart Technology (KST)}, pages={324--329}, year={2025}, organization={IEEE} }
Teerapong Panboonyuen (Kao)
Postdoctoral Researcher, Chulalongkorn University
Senior Research Scientist, MARSAIL
π§ teerapong.panboonyuen@gmail.com
Pull requests are welcome! Open an issue to propose changes or improvements.
MIT License β free to use, share, and modify.