opparco / stable-diffusion-webui-two-shot

Latent Couple extension (two shot diffusion port)
MIT License
720 stars 152 forks source link

how to save latent setting into png info #43

Open YuiZhushi opened 1 year ago

YuiZhushi commented 1 year ago

i cant see the info like "Latent Couple: divisions=1:1,1:2,1:2 positions=0:0,0:0,0:1 weights=0.2,0.8,0.8 end at step=20" in pnginfo page image

spc11400 commented 1 year ago

If you are using ashen-sensored's fork, I believe uncommenting line 577(the line with p.extra_generation_params["Latent Couple"]) in scripts/two_shot.py solves it.

        # TODO: handle different cases for generation info: 'mask' and 'rect'
        # if self.end_at_step != 0:
        #     p.extra_generation_params["Latent Couple"] = f"divisions={raw_divisions} positions={raw_positions} weights={raw_weights} end at step={raw_end_at_step}"
andupotorac commented 1 year ago

If you are using ashen-sensored's fork, I believe uncommenting line 577(the line with p.extra_generation_params["Latent Couple"]) in scripts/two_shot.py solves it.

        # TODO: handle different cases for generation info: 'mask' and 'rect'
        # if self.end_at_step != 0:
        #     p.extra_generation_params["Latent Couple"] = f"divisions={raw_divisions} positions={raw_positions} weights={raw_weights} end at step={raw_end_at_step}"

It works. But you need to remove the comments of both lines. The file is two_shot.py in scripts folder of the extension.