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

Prediction mode missing? #4

Open
quixot1c opened this issue Nov 25, 2023 · 3 comments
Open

Prediction mode missing? #4

quixot1c opened this issue Nov 25, 2023 · 3 comments

Comments

@quixot1c
Copy link

Hi, thanks for your great work!

In the GIF in the readme an animation of Ironman can be seen. Under it the text "Prediction" is shown. However, when looking through the code I cannot find a way to enable this prediction mode. Is this code not available or am I missing something?

@ExponentialML
Copy link

This may be what you're looking for. Change args.mask_type at this line to 'all'.
If you don't want to hardcode it, you can just add a custom argument like args.mask_before and use that in your yaml. The function shows the available choices to use.

mask = mask_generation_before(args.mask_type, video_input.shape, video_input.dtype, device) # b,f,c,h,w

@quixot1c
Copy link
Author

@ExponentialML Thanks for your response. Using 'all' made the video look only very vaguely like the input image. A bit like img2img on high denoising strength. Is that to be expected?

@ExponentialML
Copy link

@quixot1c No problem. Yes, that's to be expected as it's essentially generating frames "on the go".

If you want to generate it in an autoregressive manner, it's not yet implemented script wise. A makeshift, albeit slower way would be to generate a video based on one init frame, then use the last frame from the new generated video as the new first frame, rinse repeat, then join all the videos together.

I have a custom script that works like this locally, but it's not quite ready to release at the moment as it's still in testing.

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