Quick question: Can I cache the output from the control net for future use? #3940
Closed
Mintbeer96
started this conversation in
General
Replies: 2 comments 2 replies
-
This only works with ipadapter face changing. And it requires code modification inside KSampler. However, if you seek a solution you can save the control tensors and drop the c_crossattn item. I hope this will help. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm a bit confused. Is the question about inputting the control image into ControlNet? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using a pose library to assist in the sampling process. Can I pre-cache these poses since the pose images are already predefined in a folder? This would avoid the need for the control net to generate those weights each time. However, I read the code and noticed that the output of the control net depends on the prompt input. I am uncertain about how the prompt relates to the control net.
In Cldm forward function, this context is the 'c_crossattn' item from the upper streams, which is computed using the encoded prompt input.
guided_hint = self.input_hint_block(hint, emb, context)
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions