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

How to modify the resolution of generated video? #43

Open
sheldonn2 opened this issue Mar 1, 2024 · 1 comment
Open

How to modify the resolution of generated video? #43

sheldonn2 opened this issue Mar 1, 2024 · 1 comment

Comments

@sheldonn2
Copy link

Very interesting job! When I used it, I found that the model could only generate videos with a resolution of 256. How should I modify the parameters to make the model generate videos with a higher resolution?

I tried changing the "resolution" parameter in the config, but it didn't work.

Looking forward to your reply, thank you!

@agusgun
Copy link

agusgun commented Mar 12, 2024

I don't think the pretrained model supports arbitrary resolution.
You can try to change it manually by setting cfg.resolution=<YOUR_RESOLUTION> and cfg.misc_size=<YOUR_RESOLUTION>.
But, if you see the model in unet_sd.py line 1230 for example, you need to change the AdaptiveAvgPool layer to use your specific resolution also. It may affect the performance.

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