Skip to content

[docs] torchvision.io.read_video docs do not (but should) specify image scale format #3440

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

Open
vadimkantorov opened this issue Feb 23, 2021 · 1 comment

Comments

@vadimkantorov
Copy link

vadimkantorov commented Feb 23, 2021

Is it int8, uint8, float32 from 0 to 1, -1/1? Is the format always same or input-file dependent? What happens for grayscale single-channel input videos? Will it still produce 3 channels?

cc @bjuncek

@bjuncek
Copy link
Contributor

bjuncek commented Feb 25, 2021

Hi @vadimkantorov
Should be uint8 in 0-255 by default; RGB24 pixel space regardless of the input.

feel free to send a PR with the doc modification. I'm technically not working until next week so might not get to it before then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants