Skip to content

feat: add bmp extension support to default_video_operator#1466

Open
daqiege wants to merge 1 commit into
modelscope:mainfrom
daqiege:fix/bmp-support-video-operator
Open

feat: add bmp extension support to default_video_operator#1466
daqiege wants to merge 1 commit into
modelscope:mainfrom
daqiege:fix/bmp-support-video-operator

Conversation

@daqiege
Copy link
Copy Markdown

@daqiege daqiege commented May 27, 2026

Summary

  • Adds bmp to the supported image extensions in UnifiedDataset.default_video_operator so that BMP image datasets can be used for training/processing alongside JPG/PNG/WebP.

Motivation

Issue #1456 reports that BMP files are not accepted by the dataset loader even though LoadImage (PIL-backed) handles them natively. The fix is to include "bmp" in the extension tuple routed to the LoadImage >> ImageCropAndResize >> ToList pipeline — identical behavior to the other still-image formats.

Closes #1456

Test plan

  • Code compiles / imports unchanged
  • Verified that PIL's Image.open already supports .bmp, so LoadImage does not need any change
  • Reviewer can confirm by training with a BMP dataset

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for the BMP image format (".bmp") to the default_video_operator in the unified dataset loader. There are no review comments, and I have no additional feedback to provide.

Adds 'bmp' to the supported image extensions in
UnifiedDataset.default_video_operator so that BMP files can be loaded
by the same LoadImage + ImageCropAndResize path as JPG/PNG/WebP.

Fixes modelscope#1456
@daqiege daqiege force-pushed the fix/bmp-support-video-operator branch from 91c3668 to 7cca9bf Compare May 27, 2026 02:45
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.

bmp 支持问题

1 participant