Views
No views yet
pip install yoloxdetect1from yoloxdetect import YoloxDetector
2from yolox.data.datasets import COCO_CLASSES
3model = YoloxDetector(
4 model_path = "kadirnar/yolox_s-v0.1.1",
5 config_path = "configs.yolox_s",
6 device = "cuda:0",
7 hf_model=True
8
9)
10model.classes = COCO_CLASSES
11model.conf = 0.25
12model.iou = 0.45
13model.show = False
14model.save = True
15pred = model.predict(image='data/images', img_size=640)@article{yolox2021,
title={YOLOX: Exceeding YOLO Series in 2021},
author={Ge, Zheng and Liu, Songtao and Wang, Feng and Li, Zeming and Sun, Jian},
journal={arXiv preprint arXiv:2107.08430},
year={2021}
}