DeepCache icon indicating copy to clipboard operation
DeepCache copied to clipboard

Caching Mechanism for choosing skip branch

Open Kyuseok-nam opened this issue 10 months ago • 0 comments

Hi, I was going over the code for DeepCache and was quite confused with a particular part of the code where you choose the skip branch in the unet model.

from unet_2d_condition.py file, line 1102~1108, Why did you implment this if condition? it seems to limit access of other skip branch or layers.

Also if I'm understanding correctly, Cache_layer_id : indicates which big block to choose from ex) CrossAttn2Dblock, DownBlock2D,... Cache_block_id: indicates which block (small blocks inside the big block) to choose from ex) transformer2dmodel, resnet

is this correct?

스크린샷 2024-04-23 172624

Kyuseok-nam avatar Apr 23 '24 08:04 Kyuseok-nam