ComfyUI Node

YOLOv8 Object Detection

A ComfyUI node in image/object_detection with 12 inputs and 4 outputs.

By mangobyed·Created 12 months ago·Updated 12 months ago· 1
YOLOv8 Object Detection
  • image
  • detected_objects
  • object_count
  • class_names
  • detection_info
model_nameyolov8n.pt
confidence_threshold0.25
iou_threshold0.45
padding10
custom_model_path
max_size512
preserve_aspect_ratiotrue
exclude_persontrue
exclude_animalsfalse
exclude_vehiclesfalse
min_confidence0.30
Categoryimage/object_detection

Inputs (12)

NameTypeDefaultDescription
imageIMAGE
model_nameCOMBOyolov8n.pt5 options: yolov8n.pt, yolov8s.pt, yolov8m.pt, yolov8l.pt, yolov8x.pt
confidence_thresholdFLOAT0.250–1
iou_thresholdFLOAT0.450–1
paddingINT100–100
custom_model_pathoptSTRING
max_sizeoptINT512128–1024
preserve_aspect_ratiooptBOOLEANtrue
exclude_personoptBOOLEANtrue
exclude_animalsoptBOOLEANfalse
exclude_vehiclesoptBOOLEANfalse
min_confidenceoptFLOAT0.300.1–0.9

Outputs (4)

NameTypeDescription
detected_objectsIMAGE
object_countINT
class_namesSTRING
detection_infoSTRING