Views
No views yet
pip install yoloxdetect1from yoloxdetect import YoloxDetector
2from yolox.data.datasets import COCO_CLASSES
3model = YoloxDetector(
4 model_path = "kadirnar/yolox_m-v0.1.1",
5 config_path = "configs.yolox_m",
6 device = "cuda:0",
7 hf_model=True
8)
9model.classes = COCO_CLASSES
10model.conf = 0.25
11model.iou = 0.45
12model.show = False
13model.save = True
14pred = 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}
}