From 3c93f8e85b6d20a9437d430606e2ba9d1d150e3c Mon Sep 17 00:00:00 2001 From: Joshua Lochner Date: Thu, 9 Nov 2023 17:18:24 +0200 Subject: [PATCH] Fix typo --- src/processors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processors.js b/src/processors.js index 12cb4c02b..7691cb413 100644 --- a/src/processors.js +++ b/src/processors.js @@ -1010,7 +1010,7 @@ export class Swin2SRImageProcessor extends ImageFeatureExtractor { const [imageWidth, imageHeight, imageChannels] = imgDims; return super.pad_image(pixelData, imgDims, { - // NOTE: For Swin2SR models, the original python implementation adds padding even when `pad_size` is already + // NOTE: For Swin2SR models, the original python implementation adds padding even when the image's width/height is already // a multiple of `pad_size`. However, this is most likely a bug (PR: https://github.com/mv-lab/swin2sr/pull/19). // For this reason, we only add padding when the image's width/height is not a multiple of `pad_size`. width: imageWidth + (padSize - imageWidth % padSize) % padSize,