GithubHelp home page GithubHelp logo

Batching/Sliding Window about flatten HOT 3 CLOSED

logtd avatar logtd commented on June 14, 2024
Batching/Sliding Window

from flatten.

Comments (3)

yrcong avatar yrcong commented on June 14, 2024

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.

logtd avatar logtd commented on June 14, 2024

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.

yrcong avatar yrcong commented on June 14, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.