From 6251c487e2bf0cd3a9e73ca5e54cf2f0dc529fa3 Mon Sep 17 00:00:00 2001 From: Benjamin Loison <12752145+Benjamin-Loison@users.noreply.github.com> Date: Tue, 16 Apr 2024 02:51:27 +0200 Subject: [PATCH] Add temporarily `maxGreen` computation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And got: ``` Denoising images: 0%| | 0/100 [00:00 maxGreen: + maxGreen = greenRawImageVisibleMax + print(f'{maxGreen=}') + imageNpArray = greenRawImageVisible # Pay attention to range of values expected by the denoiser. - exit(1) + #exit(1) else: imagePil = Image.open(imageFilePath) imageNpArray = img_as_float(np.array(imagePil)) # As the arguments differ from a denoiser to the other should use a match instead. - imageDenoisedNpArray = denoise(imageNpArray, channel_axis=-1, convert2ycbcr=True, rescale_sigma=True) + imageDenoisedNpArray = denoise(imageNpArray, rescale_sigma=True) imageNoiseNpArray = imageNpArray - imageDenoisedNpArray if mean is None: mean = imageNoiseNpArray