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

data type in augmentation #32

Open
jizhang02 opened this issue Apr 11, 2024 · 1 comment
Open

data type in augmentation #32

jizhang02 opened this issue Apr 11, 2024 · 1 comment

Comments

@jizhang02
Copy link

Hello,

I'm curious whether the data type is limited to uint8, ranging from 0-255. In certain situations, such as medical imaging, the data type might be float32. Converting it to uint8 could result in a loss of information.

When I use import torchvision.transforms, it also only support uint8.

@ZFTurbo
Copy link
Owner

ZFTurbo commented Apr 11, 2024

I think it's because transforms came from 2D images, where 0-255 range is typically used for RGB images. May be volumentations can be updated to work with float32.

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

No branches or pull requests

2 participants