Skip to content

Comments

encoder: set default image tensor format to match decoder (RGB)#21

Merged
eliteprox merged 1 commit intomainfrom
fix/encoder-rgb
Aug 30, 2025
Merged

encoder: set default image tensor format to match decoder (RGB)#21
eliteprox merged 1 commit intomainfrom
fix/encoder-rgb

Conversation

@eliteprox
Copy link
Collaborator

@eliteprox eliteprox commented Aug 22, 2025

This pull request makes a small but important change to how images are handled during encoding. The change explicitly specifies the RGB mode when creating a PIL.Image from a NumPy array to ensure color consistency between the decoder and encoder.

  • Explicitly set the mode='RGB' when creating a PIL.Image from the NumPy array in custom_io_open, ensuring the encoder receives images in the correct color format.

@eliteprox eliteprox changed the title encoder: set default image tensor format to match decoder (RBG) encoder: set default image tensor format to match decoder (RGB) Aug 22, 2025
@pschroedl pschroedl self-requested a review August 28, 2025 14:18
Copy link
Collaborator

@pschroedl pschroedl left a comment

Choose a reason for hiding this comment

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

👍

@eliteprox eliteprox merged commit 7eb5aa3 into main Aug 30, 2025
1 check passed
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.

2 participants