Comments (3)
Hello logtd,
I am glad that you have interest in our model and welcome to integrate FLATTEN into ComfyUI!
For processing a video in chunks, TBH, we didn't test it. inter_frame
and get_slide_window_indices
are used for something else and left.
I would like to suggest that you could do in this way:
Let's say there is a 100-frame video, you could chunk it into three clips: [1-40], [30-70], [60-100] and process them with FLATTEN in batch. Since there are overlaps between these chunks, the visual appearance should be somehow consistent.
We will move on to optimize FLATTEN to make it more efficient:D
best regards,
Yuren
from flatten.
Thanks for your reply!
I've implemented a naive batching solution and it works somewhat. Will try to improve it over time.
One interesting thing I've found about Flatten is that while sampling you can use a sampling algorithm that adds additional noise as long as the noise is guided by optical flow/trajectories through frames. It allows the model to produce videos that can deviate from the source input but maintain consistency. Here's a simple (yet slow) implementation of it https://github.com/logtd/ComfyUI-FLATTEN/blob/main/utils/flow_noise.py
Again, thanks for open sourcing this code. Going to close the issue but feel free to reopen.
from flatten.
Thanks for the information! Please let me know if you have other concerns. After ECCV I will have more time;D
from flatten.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatten.