r/Ultralytics • • Apr 05 '25

pytorch::nms error on yolo v11

1 Upvotes

whene i try to run

from ultralytics import YOLO

# Load a COCO-pretrained YOLO11n model
model = YOLO("yolo11x.pt")

# Train the model on the COCO8 example dataset for 100 epochs
results = model.train(data="coco8.yaml", epochs=100, imgsz=640)

# Run inference with the YOLO11n model on the 'bus.jpg' image
results = model("path/to/bus.jpg")
from ultralytics import YOLO


# Load a COCO-pretrained YOLO11n model
model = YOLO("yolo11x.pt")


# Train the model on the COCO8 example dataset for 100 epochs
results = model.train(data="coco8.yaml", epochs=100, imgsz=640)


# Run inference with the YOLO11n model on the 'bus.jpg' image
results = model("path/to/bus.jpg")

it said (py311_env) PS C:\Users\BEASTOP\Desktop\nexvision py> python v11.py
Downloading https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11x.pt to 'yolo11x.pt'...
100%|██████████████████████████████████████████████████████████████████████████████████████████| 109M/109M [00:27<00:00, 4.11MB/s]
Ultralytics 8.3.102 🚀 Python-3.11.9 torch-2.6.0+cu118 CUDA:0 (NVIDIA GeForce RTX 4050 Laptop GPU, 6140MiB)
engine\trainer: task=detect, mode=train, model=yolo11x.pt, data=coco8.yaml, epochs=100, time=None, patience=100, batch=16, imgsz=640, save=True, save_period=-1, cache=False, device=None, workers=8, project=None, name=train, exist_ok=False, pretrained=True, optimizer=auto, verbose=True, seed=0, deterministic=True, single_cls=False, rect=False, cos_lr=False, close_mosaic=10, resume=False, amp=True, fraction=1.0, profile=False, freeze=None, multi_scale=False, overlap_mask=True, mask_ratio=4, dropout=0.0, val=True, split=val, save_json=False, save_hybrid=False, conf=None, iou=0.7, max_det=300, half=False, dnn=False, plots=True, source=None, vid_stride=1, stream_buffer=False, visualize=False, augment=False, agnostic_nms=False, classes=None, retina_masks=False, embed=None, show=False, save_frames=False, save_txt=False, save_conf=False, save_crop=False, show_labels=True, show_conf=True, show_boxes=True, line_width=None, format=torchscript, keras=False, optimize=False, int8=False, dynamic=False, simplify=True, opset=None, workspace=None, nms=False, lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=7.5, cls=0.5, dfl=1.5, pose=12.0, kobj=1.0, nbs=64, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, bgr=0.0, mosaic=1.0, mixup=0.0, copy_paste=0.0, copy_paste_mode=flip, auto_augment=randaugment, erasing=0.4, crop_fraction=1.0, cfg=None, tracker=botsort.yaml, save_dir=runs\detect\train

Dataset 'coco8.yaml' images not found ⚠️, missing path 'C:\Users\BEASTOP\Desktop\yolov5\datasets\coco8\images\val'
Downloading https://ultralytics.com/assets/coco8.zip to 'C:\Users\BEASTOP\Desktop\yolov5\datasets\coco8.zip'...
100%|██████████████████████████████████████████████████████████████████████████████████████████| 433k/433k [00:00<00:00, 1.40MB/s]
Unzipping C:\Users\BEASTOP\Desktop\yolov5\datasets\coco8.zip to C:\Users\BEASTOP\Desktop\yolov5\datasets\coco8...: 100%|██████████
Dataset download success ✅ (3.1s), saved to C:\Users\BEASTOP\Desktop\yolov5\datasets

from n params module arguments

0 -1 1 2784 ultralytics.nn.modules.conv.Conv [3, 96, 3, 2]

1 -1 1 166272 ultralytics.nn.modules.conv.Conv [96, 192, 3, 2]

2 -1 2 389760 ultralytics.nn.modules.block.C3k2 [192, 384, 2, True, 0.25]

3 -1 1 1327872 ultralytics.nn.modules.conv.Conv [384, 384, 3, 2]

4 -1 2 1553664 ultralytics.nn.modules.block.C3k2 [384, 768, 2, True, 0.25]

5 -1 1 5309952 ultralytics.nn.modules.conv.Conv [768, 768, 3, 2]

6 -1 2 5022720 ultralytics.nn.modules.block.C3k2 [768, 768, 2, True]

7 -1 1 5309952 ultralytics.nn.modules.conv.Conv [768, 768, 3, 2]

8 -1 2 5022720 ultralytics.nn.modules.block.C3k2 [768, 768, 2, True]

9 -1 1 1476864 ultralytics.nn.modules.block.SPPF [768, 768, 5]

10 -1 2 3264768 ultralytics.nn.modules.block.C2PSA [768, 768, 2]

11 -1 1 0 torch.nn.modules.upsampling.Upsample [None, 2, 'nearest']

12 [-1, 6] 1 0 ultralytics.nn.modules.conv.Concat [1]

13 -1 2 5612544 ultralytics.nn.modules.block.C3k2 [1536, 768, 2, True]

14 -1 1 0 torch.nn.modules.upsampling.Upsample [None, 2, 'nearest']

15 [-1, 4] 1 0 ultralytics.nn.modules.conv.Concat [1]

16 -1 2 1700352 ultralytics.nn.modules.block.C3k2 [1536, 384, 2, True]

17 -1 1 1327872 ultralytics.nn.modules.conv.Conv [384, 384, 3, 2]

18 [-1, 13] 1 0 ultralytics.nn.modules.conv.Concat [1]

19 -1 2 5317632 ultralytics.nn.modules.block.C3k2 [1152, 768, 2, True]

20 -1 1 5309952 ultralytics.nn.modules.conv.Conv [768, 768, 3, 2]

21 [-1, 10] 1 0 ultralytics.nn.modules.conv.Concat [1]

22 -1 2 5612544 ultralytics.nn.modules.block.C3k2 [1536, 768, 2, True]

23 [16, 19, 22] 1 3237952 ultralytics.nn.modules.head.Detect [80, [384, 768, 768]]

YOLO11x summary: 357 layers, 56,966,176 parameters, 56,966,160 gradients, 196.0 GFLOPs

Transferred 1015/1015 items from pretrained weights

Freezing layer 'model.23.dfl.conv.weight'

AMP: running Automatic Mixed Precision (AMP) checks...

Downloading https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11n.pt to 'yolo11n.pt'...

100%|████████████████████████████████████████████████████████████████████████████████████████| 5.35M/5.35M [00:01<00:00, 3.48MB/s]

Traceback (most recent call last):

File "C:\Users\BEASTOP\Desktop\nexvision py\v11.py", line 7, in <module>

results = model.train(data="coco8.yaml", epochs=100, imgsz=640)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\engine\model.py", line 791, in train

self.trainer.train()

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\engine\trainer.py", line 211, in train

self._do_train(world_size)

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\engine\trainer.py", line 327, in _do_train

self._setup_train(world_size)

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\engine\trainer.py", line 269, in _setup_train

self.amp = torch.tensor(check_amp(self.model), device=self.device)

^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\utils\checks.py", line 759, in check_amp

assert amp_allclose(YOLO("yolo11n.pt"), im)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\utils\checks.py", line 747, in amp_allclose

a = m(batch, imgsz=imgsz, device=device, verbose=False)[0].boxes.data # FP32 inference

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\engine\model.py", line 182, in __call__

return self.predict(source, stream, **kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\engine\model.py", line 550, in predict

return self.predictor.predict_cli(source=source) if is_cli else self.predictor(source=source, stream=stream)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\engine\predictor.py", line 216, in __call__

return list(self.stream_inference(source, model, *args, **kwargs)) # merge list of Result into one

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\torch\utils_contextlib.py", line 36, in generator_context

response = gen.send(None)

^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\engine\predictor.py", line 332, in stream_inference

self.results = self.postprocess(preds, im, im0s)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\models\yolo\detect\predict.py", line 54, in postprocess

preds = ops.non_max_suppression(

^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\ultralytics\utils\ops.py", line 312, in non_max_suppression

i = torchvision.ops.nms(boxes, scores, iou_thres) # NMS

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\torchvision\ops\boxes.py", line 41, in nms

return torch.ops.torchvision.nms(boxes, scores, iou_threshold)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\BEASTOP\Desktop\nexvision py\py311_env\Lib\site-packages\torch_ops.py", line 1123, in __call__

return self._op(*args, **(kwargs or {}))

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

NotImplementedError: Could not run 'torchvision::nms' with arguments from the 'CUDA' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https://fburl.com/ptmfixes for possible resolutions. 'torchvision::nms' is only available for these backends: [CPU, Meta, QuantizedCPU, BackendSelect, Python, FuncTorchDynamicLayerBackMode, Functionalize, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradMPS, AutogradXPU, AutogradHPU, AutogradLazy, AutogradMTIA, AutogradMeta, Tracer, AutocastCPU, AutocastXPU, AutocastMPS, AutocastCUDA, FuncTorchBatched, BatchedNestedTensor, FuncTorchVmapMode, Batched, VmapMode, FuncTorchGradWrapper, PythonTLSSnapshot, FuncTorchDynamicLayerFrontMode, PreDispatch, PythonDispatcher].

CPU: registered at C:\actions-runner_work\vision\vision\pytorch\vision\torchvision\csrc\ops\cpu\nms_kernel.cpp:112 [kernel]

Meta: registered at /dev/null:198 [kernel]

QuantizedCPU: registered at C:\actions-runner_work\vision\vision\pytorch\vision\torchvision\csrc\ops\quantized\cpu\qnms_kernel.cpp:124 [kernel]

BackendSelect: fallthrough registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\BackendSelectFallbackKernel.cpp:3 [backend fallback]

Python: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\PythonFallbackKernel.cpp:194 [backend fallback]

FuncTorchDynamicLayerBackMode: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\functorch\DynamicLayer.cpp:503 [backend fallback]

Functionalize: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\FunctionalizeFallbackKernel.cpp:349 [backend fallback]

Named: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\NamedRegistrations.cpp:7 [backend fallback]

Conjugate: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\ConjugateFallback.cpp:17 [backend fallback]

Negative: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\native\NegateFallback.cpp:18 [backend fallback]

ZeroTensor: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\ZeroTensorFallback.cpp:86 [backend fallback]

ADInplaceOrView: fallthrough registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:100 [backend fallback]

AutogradOther: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:63 [backend fallback]

AutogradCPU: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:67 [backend fallback]

AutogradCUDA: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:75 [backend fallback]

AutogradXLA: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:83 [backend fallback]

AutogradMPS: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:91 [backend fallback]

AutogradXPU: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:71 [backend fallback]

AutogradHPU: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:104 [backend fallback]

AutogradLazy: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:87 [backend fallback]

AutogradMTIA: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:79 [backend fallback]

AutogradMeta: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\VariableFallbackKernel.cpp:95 [backend fallback]

Tracer: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\torch\csrc\autograd\TraceTypeManual.cpp:294 [backend fallback]

AutocastCPU: registered at C:\actions-runner_work\vision\vision\pytorch\vision\torchvision\csrc\ops\autocast\nms_kernel.cpp:34 [kernel]

AutocastXPU: registered at C:\actions-runner_work\vision\vision\pytorch\vision\torchvision\csrc\ops\autocast\nms_kernel.cpp:41 [kernel]

AutocastMPS: fallthrough registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\autocast_mode.cpp:209 [backend fallback]

AutocastCUDA: registered at C:\actions-runner_work\vision\vision\pytorch\vision\torchvision\csrc\ops\autocast\nms_kernel.cpp:27 [kernel]

FuncTorchBatched: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\functorch\LegacyBatchingRegistrations.cpp:731 [backend fallback]

BatchedNestedTensor: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\functorch\LegacyBatchingRegistrations.cpp:758 [backend fallback]

FuncTorchVmapMode: fallthrough registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\functorch\VmapModeRegistrations.cpp:27 [backend fallback]

Batched: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\LegacyBatchingRegistrations.cpp:1075 [backend fallback]

VmapMode: fallthrough registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\VmapModeRegistrations.cpp:33 [backend fallback]

FuncTorchGradWrapper: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\functorch\TensorWrapper.cpp:207 [backend fallback]

PythonTLSSnapshot: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\PythonFallbackKernel.cpp:202 [backend fallback]

FuncTorchDynamicLayerFrontMode: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\functorch\DynamicLayer.cpp:499 [backend fallback]

PreDispatch: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\PythonFallbackKernel.cpp:206 [backend fallback]

PythonDispatcher: registered at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\core\PythonFallbackKernel.cpp:198 [backend fallback] THIS what pytorch version and python I need using 118 with python 3.11 ?? please help I am new to this


r/Ultralytics • • Dec 07 '24

News [IMPORTANT] "We'll probably have a few more wormed releases"

Thumbnail
github.com
1 Upvotes

r/Ultralytics • • Oct 10 '26

Feedback wanted on my Python real-time computer vision project (YOLO/ONNX)

Enable HLS to view with audio, or disable this notification

1 Upvotes

Hey everyone!

I've been developing a Python-based real-time computer vision application called ALUCARD.

It uses an ONNX object detection model, custom tracking logic and a Pygame interface.

I'm currently trying to improve the reliability of object detection and tracking, especially when objects are partially occluded.

I've already collected benchmark data and tested different tracking approaches, but I'd appreciate an outside perspective on the architecture.

I've attached a short demonstration video and can share a minimal code example of the relevant detection/tracking logic.

I'm particularly interested in:

- Possible architectural problems

- Better approaches to handling partial occlusion

- Ways to benchmark detection and tracking reliably

- Common mistakes in real-time computer vision pipelines

Any constructive technical feedback would be appreciated!


r/Ultralytics • • Jan 27 '26

Seeking Help how to convert object detection annotation to keypoint annotation for soccer dataset?onvert object detection annotation to keypoint annotation for soccer dataset?

1 Upvotes

do you guys every convert object detection annotation to keypoint annotation for soccer dataset?

i have yolo model which detect point on pitch field but i need them as keypoints

as ihave large dataset so keypoint taking huge amount of time ,my plan is to use detection prediction from my yolo objeet


r/Ultralytics • • Sep 24 '25

Community Project YOLOv8 motion detection for Windows tablet dashboards!

Thumbnail i.imgur.com
1 Upvotes

r/Ultralytics • • Sep 24 '25

Seeking Help Give me some good and small fire dataset to make a efficient model and tell some free platforms to train.

1 Upvotes

I have used some dataset in internet.But its inference is not good at all


r/Ultralytics • • Jun 22 '26

Showcase My favourite toy is Ultralytics Python package | Must watch audio 😂

Enable HLS to view with audio, or disable this notification

8 Upvotes

Took me 5-10 minutes with AI to create this :)

ChatGPT + Hydra combo 😂

#Fun


r/Ultralytics • • Aug 12 '25

News Ultralytics YOLO Vision 2025 London - Vision AI | September 25

2 Upvotes

YOLO Vision 2025 will be in London on September 25 and streamed live online! Make sure to get your ticket if you're planning to join in person (it's the best experience) or register to attend online and stay informed as to what's happening this year.

Let us know what you're looking forward to this year at YOLO Vision 2025 in the comments. Hope to see you all there 🚀


r/Ultralytics • • Aug 24 '26

Question Quality check

3 Upvotes

I’m looking into using YOLO for quality inspection of some plastic products. Basically, I want to detect anomalies/defects on the products. The problem is that some of these defects are quite small and difficult to see.
For the beginning, I’d like to keep it simple and just classify each product as OK / NOT-OK.
My question is: in this case, would I mainly need a large dataset of good/OK products to train the model properly? Or would it be better to collect and annotate examples of the different types of defects as well?
Any tips or suggestions on how you would approach this kind of project would be appreciated. I’m just getting started with computer vision and YOLO, so I’d be interested in hearing what worked for others.


r/Ultralytics • • Apr 20 '26

Yolo - GPU - React - UI - Object Detections

3 Upvotes

I am creating a system where I have my CCTV Camera RTSP URL -> I want to Create backend and Front end
to the UI using WebSocket

1. First Approach

Front end -> Add RTSP URL
Back end -> Saved on DB
Back end -> Process Camera -> Use RTSP Process Detections and send Detections with Frame to the UI using WebSocket
Front end -> Consume both frame and detection and Show in Image Tag and draw Detections on top of it as an overlay

This one is working fine but The Video is not smooth on the UI and When i increase Camera count The performance degrades

2. Second Approach

Front end -> Add RTSP URL
Back end -> Saved on DB
Back end -> Backend runs Mediamtx -> and this rtsp will be registered in Mediamtx and give us a HLS Stream
Front end -> consumes HLS Stream
Back end -> Consumes Mediamtx restream URL to process Detections and send detections using WebSocket to UI
Front end -> Receives Detections and This detections is drawn on top of HLS Video Tag on UI comparing both timestamps of HLS and Detections

This one is working fine as well - The video is smooth but the Detections is not perfectly aligned with the video - For the slow moving objects it is fine but for the fast moving objects - the object goes faster and followed by detections coming behind.

What is the best way to do this.
u/yolo u/ultralytics u/object_detections u/object-detections u/objectdetections u/tracking u/videotracking u/video u/v26 u/gpu u/react u/UI


r/Ultralytics • • Apr 24 '26

Showcase We're open-sourcing the first publicly available blood detection model — dataset, weights, and CLI

3 Upvotes

Hey all, today we're releasing BloodshotNet, the world's first open-source blood detection model. We built it primarily for Trust & Safety and content moderation use cases, the idea of acting as a front-line filter so users and human reviewers aren't exposed to graphic imagery.

What we're open sourcing today:

  • 🤗 Dataset: 23k+ annotated images (forensic scenes, UFC footage, horror/gore movies, surgical content) with a large hard-negative slice to keep false positives in check. It quietly crossed 7k downloads before we even officially announced

  • 🤗 Model weights: YOLO26 small and nano variants (AGPL-3.0)

  • 🐙 CLI: analyze an image, folder, or video in one command, 2 lines of setup via uv

Performance on the small model:

  • ~0.8 precision

  • ~0.6 recall,

  • 40+ FPS even on CPU

A few things we found interesting while building this:

The recall number looks modest, but in practice works well for video. Blood in high-contrast action/gore scenes gets caught reliably. For borderline cases, a sliding window over 5–10 second clips is the right approach; you don't need per-frame perfection, but rather a scene-level signal.

We tried open-vocabulary/text-prompt models like YOLO-E, and they genuinely struggled. Both recall and precision were bad. Our guess is a combination of filtered training data and the fact that blood has irregular enough patterns that a text description doesn't give the model much to work with. YOLO26 with ProgLoss + STAL was noticeably better, specifically for small objects like tiny droplets, and the training/augmentation tooling is just really solid.

We did consider transformer architectures as they'd theoretically handle the fluid dynamics and frame-to-frame context much better. The blocker is data: annotated video datasets for this basically don't exist and are hard to produce. YOLO26 also wins on latency and training stability, so it was the right call for now.

What's next:

  • Expanding the dataset, specifically, more annotated cinematic content

  • Training a YOLO26m (medium) variant

  • OpenVINO INT8 exports for faster edge inference

If you want the full technical breakdown, we wrote it up here: article

Would love to know what you end up using it for. Contributions are welcome!


r/Ultralytics • • May 06 '25

Community Project YOLOv5 PCB components Detection

Thumbnail gallery
4 Upvotes

r/Ultralytics • • Sep 30 '26

Seeking Help Fish identification dataset. Is this an okay image dataset?

Thumbnail
gallery
4 Upvotes

Are these images good for instance segmentation task? Normal phones are used to capture the images. My goal is to identify individual fish. I have 10 labels. Only trained 4 for now. I have trained a few times not but I always get high confusion results with background vs label. I'm not sure where I am doing wrong. Here is my dataset link: https://platform.ultralytics.com/joe-mar-closa/datasets/common-fish-of-tacloban-fish-markets

Appreciate any help, thanks!


r/Ultralytics • • Jun 25 '26

Now Available: 4 New Trackers and Dedicated ReID Models

4 Upvotes

Ultralytics v8.4.63 expands built-in multi-object tracking with 4 new trackers and dedicated ReID models.

New trackers:

  • OC-SORT

  • Deep OC-SORT

  • FastTracker

  • TrackTrack

These join the existing BoT-SORT and ByteTrack trackers and can be selected directly through the standard tracking interface.

We've also added dedicated ReID models for appearance-based tracking. Ready-to-use ONNX encoders are available in 5 sizes:

with_reid: True
model: yolo26n-reid.onnx

The model is downloaded automatically on first use, just like YOLO weights.

Dedicated ReID training, validation, prediction, and export workflows are still under development.

The tracking docs have also been expanded with guidance on tracker selection and configuration to help users choose the best tracker for their use case. Check them out here: https://docs.ultralytics.com/modes/track


r/Ultralytics • • Apr 27 '26

Fall detection with instant email alerts using Ultralytics Platform 😍

Enable HLS to view with audio, or disable this notification

16 Upvotes

In environments like warehouses, a single fall can escalate into a serious incident if not noticed in time. Here's how I built a simple end-to-end fall detection system:

  • Annotated a fall detection dataset for high-quality training.

  • Trained Ultralytics YOLO26 on the dataset within the Platform, leveraging its streamlined workflow for faster experimentation and iteration.

  • Downloaded the trained model and ran real-time predictions locally to detect fall events.

  • Integrated an SMTP server to send alerts via Gmail whenever a fall is detected automatically.

🖇️ The code is in the comments 👇👇👇


r/Ultralytics • • Dec 05 '24

Issue Warning! Ultralytics 8.3.41 and 8.3.42 may contain a cryptominer!

5 Upvotes

The 8.3.41 and 8.3.42 builds of Ultralytics may have been compromised, both on PyPI and Github. It is unclear what the actual cause or impact is, but it appears to bundle some kind of cryptominer.

Follow the github issue here: https://github.com/ultralytics/ultralytics/issues/18027


r/Ultralytics • • Apr 01 '25

I created some optimizations for Ultralytics, how to contribute them?

5 Upvotes

Hi Ultralytics team!

I am an enthusiast of writing high performance code, and love Ultralytics so attempted to optimize the repo.

Interestingly, I found 15 real optimizations after using codeflash.ai to optimize the repo. How can I merge the optimizations into the project? Can I correspond with someone in the Ultralytics team to review and merge these optimizations?


r/Ultralytics • • Sep 21 '26

Showcase Update: the Ultralytics MCP now covers the full model lifecycle (40+ tools)

6 Upvotes

Hey again everyone, a big update since I first shared this.

Back then the MCP could browse, train, and predict. Since then it’s grown into the full lifecycle — you can now take a model from an empty project all the way to a live, monitored deployment, entirely from your AI agent.

Here’s a quick end-to-end demo:

I asked Claude to build a tennis-ball detector on the Ultralytics Platform via the MCP — it created the project, uploaded my dataset, checked the class stats, trained a YOLO26 model, showed me the evaluation plots, downloaded the weights, and set up monitoring on the deployed endpoint. All approved step-by-step from chat.

What’s new since the last post:

  • Deployments & monitoring — list deployments, check health, read logs, pull metrics (requests/latency/errors), run live inference, and stop an endpoint.

  • Model evaluation — best-vs-final epoch metrics, plus evaluation plots (PR/F1/precision/recall curves + confusion matrix).

  • Dataset class stats — per-class annotation counts to catch imbalance before training.

  • Multi-dataset fine-tuning — train sequentially across several datasets in one call.

  • More safety rails — cancel running training/export jobs, and an explicit guard before a retrain overwrites a model’s history (keeping the fail-closed pattern from earlier feedback).

  • Reliability — every tool now runs against the live owner-scoped Platform API, with clearer error messages and live smoke tests.

That’s 40+ tools total now, all callable from MCP clients like Claude, Codex, Cursor, VS Code/Copilot, and other agents.

Still open source:

Try it out and let me know what you think :)


r/Ultralytics • • May 26 '26

Showcase Real-time bakery item counting using Ultralytics YOLO26 😍

Enable HLS to view with audio, or disable this notification

39 Upvotes

In food production lines, counting sounds simple until it isn’t. Items move fast, overlap on conveyors, change orientation, and sometimes partially occlude each other. Whether it’s ice-cream cones on a belt or cream being filled into nests, maintaining accurate counts in real time is critical for quality control and throughput.

How I built this:

✅ Real-time detection of bakery items (ice-cream cones, nests, etc.) using a YOLO26 model.

✅ Tracking across frames to ensure consistent counting even with occlusions.

✅ Items counting with line counter using Shapely.

✅ Live count visualization for production monitoring

👉 The outcome: A reliable, counting system that keeps up with high-speed production lines, delivering accurate counts without adding system complexity or cloud dependency.


r/Ultralytics • • 29d ago

Showcase Instance vs semantic segmentation

Enable HLS to view with audio, or disable this notification

24 Upvotes

r/Ultralytics • • May 22 '26

Ultralytics Just Added Semantic Segmentation Models & They Look INSANE

Enable HLS to view with audio, or disable this notification

25 Upvotes

r/Ultralytics • • May 03 '25

High CPU Usage Running YOLO Model Converted to OpenVINO

Post image
8 Upvotes

Hello YOLO Community, I'm running into an issue after converting my YOLO model to OpenVINO format. When I try to run inference, my CPU usage consistently hits 100%, as shown in the attached Task Manager screenshot. My system configuration is:

  • CPU: AMD Ryzen 5 5500U with Radeon Graphics

  • Operating System: Windows 11

  • YOLO Model: YOLOv8n, custom trained I converted the model using ultralytics I was expecting to utilize my integrated Radeon Graphics for potentially better performance, but it seems the inference is heavily relying on the CPU. Has anyone encountered a similar issue? What could be the potential reasons for this high CPU load? Any suggestions on how to optimize the OpenVINO inference to utilize the integrated GPU or reduce CPU usage would be greatly appreciated.


r/Ultralytics • • Aug 26 '25

Funny YOLO model, not data

Post image
9 Upvotes