Skip to content

fix: Progressive Resizing logs height twice instead of width#3931

Open
Mr-Neutr0n wants to merge 2 commits intomosaicml:mainfrom
Mr-Neutr0n:fix/progressive-resize-log-width
Open

fix: Progressive Resizing logs height twice instead of width#3931
Mr-Neutr0n wants to merge 2 commits intomosaicml:mainfrom
Mr-Neutr0n:fix/progressive-resize-log-width

Conversation

@Mr-Neutr0n
Copy link

Bug

Progressive Resizing logs the height value for both height and width, so the width is never correctly reported in logs.

In resize_batch(), the debug log for new input dimensions uses X_sized.shape[2] (height) twice instead of X_sized.shape[2] for height and X_sized.shape[3] for width.

Fix

Changed the second X_sized.shape[2] to X_sized.shape[3] so the width dimension is correctly logged.

@Mr-Neutr0n Mr-Neutr0n requested a review from a team as a code owner February 11, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant