fcakyon/ultralyticsplus
Fork: 9 Star: 55 (更新于 1970-01-01 00:00:00)
license: GPL-3.0
Language: Python .
Huggingface utilities for Ultralytics/YOLOv8
最后发布版本: 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_result
# 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
image = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'
# perform inference
results = model.predict(image, imgsz=640)
# parse results
result = results[0]
boxes = result.boxes.xyxy # x1, y1, x2, y2
scores = result.boxes.conf
categories = result.boxes.cls
scores = result.probs # for classification models
masks = result.masks # for segmentation models
# show results on image
render = render_result(model=model, image=image, result=result)
render.show()
最近版本更新:(数据更新于 1970-01-01 00:00:00)
2023-02-22 18:51:26 0.0.28
2023-02-21 14:54:03 0.0.27
2023-02-12 20:17:25 0.0.26
2023-01-31 19:06:09 0.0.25
2023-01-29 23:42:41 0.0.24
2023-01-27 14:07:38 0.0.23
2023-01-26 23:56:46 0.0.22
2023-01-26 15:45:10 0.0.21
2023-01-25 13:33:58 0.0.20
2023-01-24 05:19:52 0.0.19
主题(topics):
huggingface, object-detection, ultralytics, yolov8
fcakyon/ultralyticsplus同语言 Python最近更新仓库
2024-11-22 08:12:43 jxxghp/MoviePilot
2024-11-22 02:39:01 goauthentik/authentik
2024-11-22 00:03:47 comfyanonymous/ComfyUI
2024-11-21 22:06:18 rashevskyv/dbi
2024-11-21 21:09:02 xtekky/gpt4free
2024-11-21 20:03:58 ultralytics/ultralytics