Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds EXR format to store depth images in float32 #7463

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ducha-aiki
Copy link

This PR adds the EXR feature to store depth images (or can be normals, etc) in float32.
It relies on openexr_numpy to manipulate EXR images.

@lhoestq
Copy link
Member

lhoestq commented Mar 18, 2025

Hi ! I'mn wondering if this shouldn't this be an Image() type and decoded as a PIL.Image ?

This would make it easier to integrate with the rest of the HF ecosystem, and you could still get a numpy array using ds = ds.with_format("numpy") which sets all the images to be formatted as numpy arrays

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