Skip to content

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

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

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

Conversation

@Mr-Neutr0n

Copy link
Copy Markdown

Fixes #910

Fixed four bugs in opensora/datasets/utils.py: swapped (width, height) to (height, width) in transforms.Resize() calls in rescale_image_by_path and rescale_video_by_path (torchvision expects H,W); replaced height with width in w_start boundary calculation in rand_size_crop_arr; removed invalid encoding="utf-8" from binary open() call in download_url.

No local test suite detected.


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

Signed-off-by: Mr-Neutr0n <64578610+Mr-Neutr0n@users.noreply.github.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