glucauze / sd-webui-faceswaplab

Extended faceswap extension for StableDiffusion web-ui with multiple faceswaps, inpainting, checkpoints, ....
https://glucauze.github.io/sd-webui-faceswaplab/
GNU Affero General Public License v3.0
731 stars 97 forks source link

processed image grid is not saved to output directory (left in temp) #10

Closed jmp909 closed 1 year ago

jmp909 commented 1 year ago

Describe the bug processed image grid is not saved to output directory .. remains in eg %AppData%\Local\Temp\Gradio

To Reproduce Steps to reproduce the behavior:

Expected behavior Post-process image grid should be output to relevant directory (Note: ideally pre-processed image grid should only be output if "Keep original image before swapping" is checked)

Desktop (please complete the following information):

thanks

glucauze commented 1 year ago

That's true, i do not save the grid in current version :

                # Generate grid :
                if opts.return_grid and len(images) > 1:
                    grid = imgutils.create_square_image(images)
                    text = processed.infotexts[0]
                    infotexts.insert(0, text)
                    if opts.enable_pnginfo:
                        grid.info["parameters"] = text
                    images.insert(0, grid)

Will try to fix that in next version.