From 3f7b6bf21a6820ad2645e0bc73e25037a897eda7 Mon Sep 17 00:00:00 2001 From: Benjamin Loison <12752145+Benjamin-Loison@users.noreply.github.com> Date: Mon, 13 May 2024 02:56:27 +0200 Subject: [PATCH] Replace `_` with ` ` for end-user color channel name --- datasets/raise/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasets/raise/utils.py b/datasets/raise/utils.py index cb52932..c5043c6 100644 --- a/datasets/raise/utils.py +++ b/datasets/raise/utils.py @@ -145,7 +145,7 @@ def getColorMeans(imagesFileNames, colors, singleColorChannelCropResolution = No colorMeans = {} for color in colors: colorIterativeMean = iterativeMean() - for imageFileName in tqdm(imagesFileNames, f'Computing mean of {color} colored images'): + for imageFileName in tqdm(imagesFileNames, f'Computing mean of {color.replace("_", " ")} colored images'): imageNpArray = getImageNpArray(imageFileName, False, color, Denoiser.MEAN) if singleColorChannelCropResolution is not None: imageNpArray = getImageCrop(imageNpArray, singleColorChannelCropResolution)