ultralytics 8.2.44 Increase Predict dataloader robustness (#14005)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
5332f52f1e
commit
8136f66bfc
4 changed files with 6 additions and 8 deletions
2
.github/workflows/format.yml
vendored
2
.github/workflows/format.yml
vendored
|
|
@ -5,8 +5,6 @@
|
||||||
name: Ultralytics Actions
|
name: Ultralytics Actions
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
types: [opened, closed, synchronize]
|
types: [opened, closed, synchronize]
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,6 @@ For training YOLOv10 on a custom dataset:
|
||||||
yolo predict model=yolov10n.yaml source=path/to/bus.jpg
|
yolo predict model=yolov10n.yaml source=path/to/bus.jpg
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Supported Tasks and Modes
|
## Supported Tasks and Modes
|
||||||
|
|
||||||
The YOLOv10 models series offers a range of models, each optimized for high-performance [Object Detection](../tasks/detect.md). These models cater to varying computational needs and accuracy requirements, making them versatile for a wide array of applications.
|
The YOLOv10 models series offers a range of models, each optimized for high-performance [Object Detection](../tasks/detect.md). These models cater to varying computational needs and accuracy requirements, making them versatile for a wide array of applications.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||||
|
|
||||||
__version__ = "8.2.43"
|
__version__ = "8.2.44"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -362,10 +362,11 @@ class LoadImagesAndVideos:
|
||||||
self.mode = "image"
|
self.mode = "image"
|
||||||
im0 = cv2.imread(path) # BGR
|
im0 = cv2.imread(path) # BGR
|
||||||
if im0 is None:
|
if im0 is None:
|
||||||
raise FileNotFoundError(f"Image Read Error {path}")
|
LOGGER.warning(f"WARNING ⚠️ Image Read Error {path}")
|
||||||
paths.append(path)
|
else:
|
||||||
imgs.append(im0)
|
paths.append(path)
|
||||||
info.append(f"image {self.count + 1}/{self.nf} {path}: ")
|
imgs.append(im0)
|
||||||
|
info.append(f"image {self.count + 1}/{self.nf} {path}: ")
|
||||||
self.count += 1 # move to the next file
|
self.count += 1 # move to the next file
|
||||||
if self.count >= self.ni: # end of image list
|
if self.count >= self.ni: # end of image list
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue