Skip to content

Fix #910: Fix height/width swap and other bugs in dataset utils#920

Draft
nandanadileep wants to merge 1 commit into
hpcaitech:mainfrom
nandanadileep:agent/issue-910-fix-heightwidth-swap-an
Draft

Fix #910: Fix height/width swap and other bugs in dataset utils#920
nandanadileep wants to merge 1 commit into
hpcaitech:mainfrom
nandanadileep:agent/issue-910-fix-heightwidth-swap-an

Conversation

@nandanadileep

Copy link
Copy Markdown

Fixes #910

Fixed 4 bugs in opensora/datasets/utils.py: swapped (width, height) to (height, width) in transforms.Resize() calls in rescale_image_by_path (line 359) and rescale_video_by_path (line 387); replaced height with width in w_start boundary calculation in rand_size_crop_arr (line 269); removed invalid encoding="utf-8" from binary open() call in download_url (line 79).

No local test suite detected.


This change was prepared with AI assistance under human direction and review.

Signed-off-by: nandanadileep <nandanadileep29@gmail.com>
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