-
Notifications
You must be signed in to change notification settings - Fork 331
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
Added merging of transparent images and post-processing (ADtailer, Hires. fix, etc.). #99
base: main
Are you sure you want to change the base?
Conversation
…Extension ・Added saving process for transparent images created by Layerdiffuse. ・Save transparent images that reflect modifications made by Extensions (Hires, ADtailer). Note: Does Hires cause an error if the image size after enlargement is not a multiple of 256? We recommend multiplying 1024*1024 by 1.5 to 1536x1536. ・When Batch count is set to 2 or more, the previous image is always included in the Image List returned by the webui side. Also, since the order is different in ascending/descending order, initialization processing is added to Layerdiffuse. It might cause some problems.
…net (I tried to prevent the error from occurring, but it does not become a transparent image. Only the error is avoided once)
You should be able to resolve the issues below.Could you upload the transparent sample images #7 |
How to use/activate it? I'm "already up to date", but Prompts from file or textbox gives me non-transparent images only
|
If you want to generate transparent images, you need the "sd-forge-layerdiffuse" functionality. However, this feature is not included in the default extensions of stable-diffusion-webui-forge. Therefore, simply pulling the stable-diffusion-webui-forge repository will not add the sd-forge-layerdiffuse feature. First, please check if sd-forge-layerdiffuse is already installed. If it is not, follow the installation instructions at the URL below. Since this PR has not yet been merged, you will need to specify the source URL of the PR. https://github.com/new-sankaku/sd-forge-layerdiffuse If it is already installed and you're still facing issues, please uninstall it and reinstall it. |
I noticed that I have installed it from other URL: https://github.com/layerdiffusion/sd-forge-layerdiffuse |
Yes, the PR has not passed, so you will need to uninstall and reinstall. |
Thank you, it is working now. May I ask you what is rebuilt image (there are checkbox to save it) |
There is no need to check rebuild if you do not use Adetailer or Hires.fix. Adtailer and Hires. fix improve transparent images, but they do not support alpha channels, so they are generated as non-transparent images. In other words, a transparent image cannot be obtained. For this reason, we reapply the alpha channel of the transparent image to the non-transparent image to restore it to a transparent image. That's what rebuild is all about.
Are there three images? 1st is the first non-transparent image created. I think it's basically unnecessary. |
Yes, I unchecked 'Save rebuild image' and now it is not saving. I would be grateful to know about how to avoid saving the first, non-transparent image. |
I've noticed that the "rebuild" file doesn't contain the result of the filename pattern like the other two files. Would it be possible add it the generated file? I personally do not use the "Add number to filename when saving" option and instead use only the "Images filename pattern" option, so the rebuild file comes up always being named "--rebuild.png" and gets rewritten on each generation. |
I forgot to mention it, but I think the problem occurred when I tried not to save opaque images. Or maybe I forgot, like I couldn't find the save code... |
It might work if you put the Seed here. I'll take a look on Saturday and Sunday. |
+1 for merging this PR so the transparent files are saved in bulk |
After the update, Layerdiffuse can now save transparent PNG files in text-to-image. The current issue is that adding Layerdiffuse significantly affects the output results, making the images generated completely different from those produced without Layerdiffusion. Additionally, in image-to-image generation, Layerdiffuse shows obvious defects. The images it generates tend to be overly red, and although it produces backgrounds with checkered patterns, it fails to properly save transparent PNG files. |
Note: Does Hires cause an error if the image size after enlargement is not a multiple of 256? We recommend multiplying 1024*1024 by 1.5 to 1536x1536.
since the order is different in ascending/descending order, initialization processing is added to Layerdiffuse. It might cause some problems.