MyGit

0.0.3

fcakyon/ultralyticsplus

版本发布时间: 2023-01-12 19:10:24

fcakyon/ultralyticsplus最新发布版本:0.0.28(2023-02-22 18:51:26)

ultralytics+

Extra features for ultralytics/ultralytics.

installation

pip install ultralyticsplus

push to 🤗 hub

ultralyticsplus --exp_dir runs/detect/train --hf_model_id HF_USERNAME/MODELNAME

load from 🤗 hub

from ultralyticsplus import YOLO, render_predictions

# load model
model = YOLO('HF_USERNAME/MODELNAME')

# set model parameters
model.overrides['conf'] = 0.25  # NMS confidence threshold
model.overrides['iou'] = 0.45  # NMS IoU threshold
model.overrides['agnostic_nms'] = False  # NMS class-agnostic
model.overrides['max_det'] = 1000  # maximum number of detections per image

# set image
img = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'

# perform inference
for result in model.predict(img, imgsz=640, return_outputs=True):
    print(result) # [x1, y1, x2, y2, conf, class]
    render = render_predictions(model, img=img, det=result["det"])
    render.show()

What's Changed

Full Changelog: https://github.com/fcakyon/ultralyticsplus/compare/0.0.2...0.0.3

相关地址:原始地址 下载(tar) 下载(zip)

查看:2023-01-12发行的版本