Custom Ultralytics Model Loader
Load any YOLO model you actually own
- ULTRALYTICS_MODEL
The built-in Ultralytics Model Loader gives you a dropdown of 26 pretrained checkpoints. This node gives you your own. If you've trained a YOLO model on your own data - a detector for a specific object, a face model, a pose checkpoint, or a segmentation model you downloaded from Hugging Face - this is the loader you want. It scans ComfyUI/models/ultralytics for every .pt file and lets you pick one, no guessing about URLs.
One input: model_path, a dropdown of whatever .pt files the pack finds in that folder. It's marked with the model_upload flag too, which means in recent ComfyUI builds you can drag a model file straight from your browser onto the node. One output, ULTRALYTICS_MODEL, identical in type to what the standard loader produces - so it swaps in anywhere the other loader would go, including straight into UltralyticsInference.
Under the hood it's the shortest node in the pack: list the .pt files in the folder the pack registered, pass the chosen path to Ultralytics' YOLO() constructor, return the object. Which is exactly why you'd use it over the dropdown loader - the dropdown loader can only fetch models Ultralytics ships, while this one loads a fine-tuned checkpoint, something you bought or made, or a variant the pack's list hasn't caught up with. The custom-model workflow in this pack starts here.
Install via ComfyUI Manager (search "ComfyUI-YOLO") or:
cd ComfyUI/custom_nodes
git clone https://github.com/kadirnar/ComfyUI-YOLO
then restart ComfyUI. The pack's one real dependency is ultralytics>=8.2.27; Manager offers to install it on first run. Models go in ComfyUI/models/ultralytics - the folder is created for you if it doesn't exist, and the README shows the manual download path if you'd rather fetch weights yourself:
cd models/ultralytics
wget https://github.com/ultralytics/assets/releases/download/v8.2.0/model_name.pt
The usual failure: the dropdown comes up empty. That means no .pt is in ComfyUI/models/ultralytics - either the folder is bare or the pack loaded before you dropped the file in. Put the model in, refresh, and you may need to reload the node definitions. And remember the same AGPL-3.0 caveat as the rest of the Ultralytics stack: fine for personal use, get a commercial license if a product ships around it. One nice thing: this node downloads nothing on its own - if you see it hitting the network, that's another node.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| model_path | COMBO | 0 options: |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| ULTRALYTICS_MODEL | ULTRALYTICS_MODEL | — |