opparco/stable-diffusion-webui-two-shot

how to save latent setting into png info

YuiZhushi opened this issue · 2 comments

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

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}"

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.