opparco / stable-diffusion-webui-two-shot

Latent Couple extension (two shot diffusion port)
MIT License
711 stars 150 forks source link

Horizontal? #12

Open scruffynerf opened 1 year ago

scruffynerf commented 1 year ago

amazing work, nice job.

Is it possible to split horizontal?

Ideally, even 4 quarters

I do realize that makes the interface much harder, maybe presets?

If yes on presets, would arbitrary zones be doable? (example, inside a circle (centered in image, so only radius in pixels given) and outside the circle (everything else)

catboxanon commented 1 year ago

For 4 horizontal divisions: image

Swap the y:x in the division and postion values if you meant vertical.

scruffynerf commented 1 year ago

For 4 horizontal divisions:

Those are vertical divisions, horizontal go with the horizon (ie side to side)

Swap the y/x in the division and postion values if you meant vertical.

Ah, cool. Not sure I understand the method/syntax.

Is it possible to do 4 quarters?

catboxanon commented 1 year ago

4 quarters: image

ClashSAN commented 1 year ago

@catboxanon got links to any guide of some kind for this?

scruffynerf commented 1 year ago

00097-2996312142-A pepperoni pizza AND a broccoli pizza AND a pizza with white sauce AND a pizza with pineapple and bacon

beautiful, and so easy. and it doesn't even look separate, look at the overlapping contents.

stormsson commented 1 year ago

@catboxanon you seem to have understood how this works, could you explain what's the logic behind the subdivisions & positions?

catboxanon commented 1 year ago

Subdivisions are y:x pairs, positions are 0-indexed. You might find this visualization more useful than the one included in the extension since it evaluates in realtime: https://jsfiddle.net/usw9jfmh/

Eventually there should be no need for this though. https://github.com/opparco/stable-diffusion-webui-two-shot/pull/23

williamkmlau commented 1 year ago

Subdivisions are y:x pairs, positions are 0-indexed. You might find this visualization more useful than the one included in the extension since it evaluates in realtime: https://jsfiddle.net/usw9jfmh/

Eventually there should be no need for this though. #23

This repo doesn't seem to be frequently maintained though. So I really doubt the "eventually" will happen anytime soon.

catboxanon commented 1 year ago

This repo doesn't seem to be frequently maintained though. So I really doubt the "eventually" will happen anytime soon.

Well, keep an eye on their fork. https://github.com/ashen-sensored/stable-diffusion-webui-two-shot The maintainer of that fork has stated on Discord they plan to add support for GLIGEN as well, which also just so happens to be coming to the ControlNet extension soon too.