Add '*.mpo' to supported image formats (#2615)

Co-authored-by: Max Uppenkamp <max.uppenkamp@inform-software.com>
This commit is contained in:
maxuppandMax Uppenkamp authored and GitHub committed 2021-03-26 12:45:22 +01:00
1 parent 77415a42e5
commit 196bf10603
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ from utils.torch_utils import torch_distributed_zero_first
# 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__)