From 15cead5183a94c2ad23bde392ffe9572c716d2f6 Mon Sep 17 00:00:00 2001 From: maxupp Date: Fri, 26 Mar 2021 12:45:22 +0100 Subject: [PATCH] Add '*.mpo' to supported image formats (#2615) Co-authored-by: Max Uppenkamp (cherry picked from commit 196bf10603a1c5257852106e8f6b44011ad0256b) --- utils/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/datasets.py b/utils/datasets.py index 86d7be39bec0..dfe1dcc52971 100644 --- a/utils/datasets.py +++ b/utils/datasets.py @@ -26,7 +26,7 @@ # Parameters help_url = 'https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data' -img_formats = ['bmp', 'jpg', 'jpeg', 'png', 'tif', 'tiff', 'dng', 'webp'] # acceptable image suffixes +img_formats = ['bmp', 'jpg', 'jpeg', 'png', 'tif', 'tiff', 'dng', 'webp', 'mpo'] # acceptable image suffixes vid_formats = ['mov', 'avi', 'mp4', 'mpg', 'mpeg', 'm4v', 'wmv', 'mkv'] # acceptable video suffixes logger = logging.getLogger(__name__)