Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hello from ControlNet] batch cond uncond counter #153

Closed
lllyasviel opened this issue Apr 29, 2023 · 1 comment · Fixed by Mikubill/sd-webui-controlnet#1337
Closed

[Hello from ControlNet] batch cond uncond counter #153

lllyasviel opened this issue Apr 29, 2023 · 1 comment · Fixed by Mikubill/sd-webui-controlnet#1337
Labels
compatibility No yet support due to compatibility problems

Comments

@lllyasviel
Copy link

lllyasviel commented Apr 29, 2023

Rightnow if ControlNet read a batch (or a instance), it will divide the batch into individual instances, and then use p.batchsize to determine whether an instance is cond instance or uncond instance.

For example, if p.batchsize is 3, and we receive 3 batches, each batch has 2 instances, then the counting is

batch-1-instance-1, batch-1-instance-2, batch-2-instance-1, batch-2-instance-2, batch-3-instance-1, batch-3-instance-2

also, because p.batchsize is 3, ControlNet will know that

batch-1-instance-1, batch-1-instance-2, batch-2-instance-1 are Cond

batch-2-instance-2, batch-3-instance-1, batch-3-instance-2 are UnCond

However, in tiled diffusion, the counting is mess by tile numbers, and a few features wont work, like shuffle and control mode.

Or does tiled diffusion already solved the problem by hacking some codes that we do not know? or am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility No yet support due to compatibility problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants