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

is it possible to load only a crop of the video? #300

Open
orena1 opened this issue Jun 1, 2024 · 1 comment
Open

is it possible to load only a crop of the video? #300

orena1 opened this issue Jun 1, 2024 · 1 comment

Comments

@orena1
Copy link

orena1 commented Jun 1, 2024

If I have a 1200x1200 video, can I load only crop (central 100x100) or maybe every second pixel (spatial subsampling)?
Thanks

@johndpope
Copy link

are you doing machine learning stuff? is your concern on the memory usage?
i have been solving similiar problem in pytorch land rendering out frames to a new dataframe npz file
https://github.com/johndpope/MegaPortrait-hack/blob/main/EmoDataset.py#L59

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