HuggingFace utilities for Ultralytics/YOLOv8.
Project description
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_model_output
# 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
for result in model.predict(image, imgsz=640, return_outputs=True):
print(result["det"]) # [[x1, y1, x2, y2, conf, class]]
render = render_model_output(model=model, image=image, model_output=result)
render.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ultralyticsplus-0.0.8.tar.gz
(9.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ultralyticsplus-0.0.8.tar.gz.
File metadata
- Download URL: ultralyticsplus-0.0.8.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a96a21fd00b97ff840eabf08b52595637c4cb1bea4e1f9d4d9bc5d8c9bd30d
|
|
| MD5 |
e7b959f9b78792f17db40434ad009e82
|
|
| BLAKE2b-256 |
5d01578fa2d56c59927cc92234ce15c3e33d96e294f9fe02103247d54a579545
|
File details
Details for the file ultralyticsplus-0.0.8-py3-none-any.whl.
File metadata
- Download URL: ultralyticsplus-0.0.8-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d25607a28cebbdcaa3672aac07377758b6808c9d5cd78b5ae271fb808c07886
|
|
| MD5 |
7e939758ef2cd8f118dd2a5996dae99b
|
|
| BLAKE2b-256 |
ce552e9068c939663ecf6d4e6c4d23f0becd507177c21730708797fd5544638e
|