Instructions to use MidnightRunner/Ultralytics with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use MidnightRunner/Ultralytics with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("MidnightRunner/Ultralytics", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,13 +25,15 @@ For ComfyUI, here’s how to load these models:
|
|
| 25 |
1. **Locate your ComfyUI folder** (e.g. `~/ComfyUI/` or `C:\ComfyUI\`).
|
| 26 |
2. **Create directories**:
|
| 27 |
```bash
|
| 28 |
-
cd /path/to/ComfyUI
|
| 29 |
-
mkdir -p
|
| 30 |
3. Place your .pt files:
|
| 31 |
• Segmentation → models/ultralytics/segm/
|
| 32 |
• Detection (bbox) → models/ultralytics/bbox/
|
| 33 |
4. Restart ComfyUI
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
• Add Node → Model → Ultralytics → choose segm/… or bbox/….
|
| 36 |
• Connect an Image Loader → Ultralytics node → Previewer
|
| 37 |
|
|
|
|
| 25 |
1. **Locate your ComfyUI folder** (e.g. `~/ComfyUI/` or `C:\ComfyUI\`).
|
| 26 |
2. **Create directories**:
|
| 27 |
```bash
|
| 28 |
+
cd /path/to/ComfyUI/models
|
| 29 |
+
mkdir -p ultralytics/segm ultralytics/bbox
|
| 30 |
3. Place your .pt files:
|
| 31 |
• Segmentation → models/ultralytics/segm/
|
| 32 |
• Detection (bbox) → models/ultralytics/bbox/
|
| 33 |
4. Restart ComfyUI
|
| 34 |
+
```bash
|
| 35 |
+
cd /path/to/ComfyUI
|
| 36 |
+
5. In the UI:
|
| 37 |
• Add Node → Model → Ultralytics → choose segm/… or bbox/….
|
| 38 |
• Connect an Image Loader → Ultralytics node → Previewer
|
| 39 |
|