[experiment] CogVideoX 🤝🏼 FreeNoise #9389
Open
+1,052
−72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Attempt to make FreeNoise work with CogVideoX to enable longer video generation, prompt interpolation (something like Luma AI Keyframes but without image condition control since available Cog models are txt2vid), etc.
Code
Here are some preliminary txt2vid results:
cogvideox_freenoise--context_stride-2.mp4
cogvideox_freenoise--context_stride-4.mp4
cogvideox_freenoise--context_stride-6.mp4
cogvideox_freenoise--context_stride-8.mp4
I also tried the context windows method with temporal tiling on the transformer in the pipeline but got poorer results compared to FreeNoise. I don't think it's worth considering supporting as we don't support it for AnimateDiff as well. FreeNoise, however, performs better although there is some visible repetition going on for the same prompt. This is most likely due to
noise_type
in above generations being"shuffle_context"
. I'm expecting improvements when using better initial noise generation strategies.context_length
as 13 andcontext_stride
as 4 seem to produce the best results on a variety of prompts. This corresponds to 49 and 16 pixel-space frames respectively.TODO:
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@DN6 @yiyixuxu @asomoza
@zRzRzRzRzRzRzR @wenyihong because changes involve CogVideoX
@arthur-qiu @tin2tin for visibility