Git Product home page Git Product logo

Comments (4)

horseee avatar horseee commented on June 1, 2024

Hi @harpavatkeerti

Thanks for your interest in our paper!

cache_block_id corresponds to the n-th residual path in each layer. After defining the cache layer by cache_layer_id, we then choose the n-th residual path within that layer by cache_block_id. As for Stable Diffusion 1.5, the maximum cache_block_id for each layer is 2. Because it is generally divided by different block structures as residuals, we name it cache_block_id.

The name "cache_block_id" seems to cause difficulties in understanding. We would consider to change a name for this. Thanks for your good question!

from deepcache.

harpavatkeerti avatar harpavatkeerti commented on June 1, 2024

Thanks for the clarification @horseee. So, it's a more granular level of control for caching the output of a particular residual path in a layer, if it's the last one, then it's the output of the whole layer, which is detailed in the paper. Else the cache is retrieved from that particular block instead of the previous layer. Is this understanding correct?

from deepcache.

horseee avatar horseee commented on June 1, 2024

Hi @harpavatkeerti

it's a more granular level of control for caching the output of a particular residual path in a layer

Correct

if it's the last one, then it's the output of the whole layer, which is detailed in the paper

If the U-Net has some middle-layer blocks, then the middle-layer blocks would still not be included by choosing the last path.

Else the cache is retrieved from that particular block instead of the previous layer.

Correct!

from deepcache.

harpavatkeerti avatar harpavatkeerti commented on June 1, 2024

Ok, thanks a lot!

from deepcache.

Related Issues (20)

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.