-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
After 7.8 - 9.2 Zoom Enhance either doesn't work at all; Doesn't stitch or makes barely any changes #152
Comments
Running https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre Tried running newer versions but as I've said they do not stitch the images back together; and barely any changes are made to image. I want to go back to 7.8 -7.9.1 FULL Error message (yes I spelled versions wrong do not care to fix) Error running postprocess: X:\Program Files\AI Tools\AI\Stable Diffusion 2.1\SD OLD Verions\extensions\unprompted\scripts\unprompted.py The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Update 7.9 - has no error but does not do anything, no images stitch no 2nd image, clipseg model weight gets downloaded; however nothing after. Update 7.9.1 - Same thing; clipseg downloads 0 errors but nothing is generated aside from original. Update 7.7.2 - My original extension install errors out and no longer works as well; even with A1111 1.0 Update 7.7.0 - Errors out "Error running postprocess: C:\Program Files\AI Tools\AI\Stable Diffusion 2.1\SD OLD Versions\extensions\unprompted\scripts\unprompted.py Update** python downgraded to 3.10.8 - Downloads clipseg; no new image generated Update*** python downgraded to 3.10.6 - Not working at all; no clipseg download Update**** python upgraded back to 3.10.9 - Clipseg downloads; only original gets generated Update***** Python to 3.10.6; Using ver 9.2.0 (released yesterday); Makes original + upscaled area but does not stitch the images together. An image appears in temp folder but its the original and not stitched. UPDATE****** Fixed 9.2.0 w/ old zoom_enhance.py; However the image quality compared to 7.x is worse so hoping Img2img generation is reapplied instead of new method. Also must use FULL shortcode can no longer keep short replacement in [] |
had lots of problems with zoom enhance not working too. i havnt updated recently as i actualy got it working a few days ago after the update last week. i had to delete a section in the shortcode. mine looks like this. [if batch_index=0][after][zoom_enhance show_original mask="face,head" replacement="pretty female face, lora:add_detail:1.0(masterpiece), (best quality), (high quality), (high resolution), (highres), (absurdres), (ultra detailed), (high-quality), (realistic), (amazing digital art), (realistic lighting:1.4), (realistic shadows:1.4), (perfect contrast), (bright, vibrant), " negative_replacement="(bad-hands-5:1.4), (EasyNegative:0.4), (worst quality:1.5), (low quality:1.5), (bad_prompt2:1.1), (depth of field, blurry:1.2), (greyscale, monochrome:1.1), (asymmetrical fine details:1.6), (asymmetrical intricate details:1.6), (jumbled intricate details), (intricate details that don't make sense), (lowres details), (blurry details), (lazy details), (lazy intricate details), (geometrically imperfect details), cropped, lowres, text, jpeg artifacts, signature, username, blurry, artist name, trademark, title, (tan, Reference sheet, (worst quality), (low quality:1.4), (out of focus:1.2), (blurred background), (low detail background), (background has few details), (background undetailed), (out of focus:1.2), helmet, face mask, edge blur, radial blur, mutated, extra limbs, ugly, poorly drawn face, (badly drawn, bad drawing, bad proportions,:1.2), (bad_prompt2:0.5), opening curtain, upside down, inverted, bodysuit, latex, " mask_sort_method="left-to-right" unload_model upscale_method='Bicubic' downscale_method='Lanczos' blur_size=0.02 cfg_scale_min=8 denoising_max=0.52 mask_size_max=0.5 mask_method='clipseg' sharpen_amount=1.1 color_correct_method='none' color_correct_timing='pre' color_correct_strength=1.0 min_area=600.0 contour_padding=0.01 upscale_width=1300.0 upscale_height=1300.0][/after][/if] works perfectly again for me. deleting a few of the bits at the end was what got it working. obviously change the prompts to what you want but the last section with the settings should work. |
Solution for 9.2.0: Use modified Zoom_enhance.py #84 posted by creator. This made a stitch image in %TEMP% and had the modified image displayed in Auto1111 GUI. I had to use FULL shortcode in wizard zoom enhance section; [if batch_index=0][after][zoom_enhance show_original mask='face' replacement='[insert prompt]' mask_sort_method='left-to-right' upscale_method='Nearest Neighbor' downscale_method='Lanczos' blur_size=0.03 cfg_scale_min=3.0 denoising_max=0.65 mask_size_max=0.3 mask_method='clipseg' sharpen_amount=1.0 color_correct_method='none' color_correct_timing='pre' color_correct_strength=1.0 min_area=50.0 contour_padding=0.0 upscale_width=512.0 upscale_height=512.0 hires_size_max=1024.0][/after][/if] Issue: 9.2.0: would display 2 images both unmodified in GUI, 1 image in text2img unmodified, 1 image in img2img of upscaled "fix" section (ie face, hands etc), 1 image in %TEMP% unmodified. I really appreciate this extension, and I get it might be a lot to ask; but a potential future "desire" would be if we could have the option for img2img method again like in 7.x. Might be a lot to ask and I already appreciate this extension greatly. Hope this helps as well |
When you use debug in the shortcode, it will generate the images correctly at the base folder of your SD installation |
Hi folks, I finally have an update on the issues with
Please try updating to Unprompted v9.13.2 and let me know if you still encounter any problems with Thanks! |
I'm using unprompted v9.15.1 with webUI v1.5.1 and for some reason it's not stitching the img2img to the original image.
Enabling the _alt parm doesn't seem to matter. When I enable the debug parm the stitched image is in my root folder, so it does seem to work (somewhat) with the debug flag enabled. Even with debug flag enabled to image in the txt2image folder is the original unstitched. |
This still does not appear to be fixed. My experience is similar to that of @spryroX. Specifically: Windows 11 Pro For my most recent attempts, I was ending my Img2Img prompt with "[after][zoom_enhance allow_dupe_index debug replacement="blue face" denoising_max=1][/after]". (Using _alt or not does not seem to make any difference.) (Note, by the way, that I was getting warnings when I used batch size=3, telling me that duplicate 'after' code was detected and I should include allow_dupe_index to suppress the warning. My prompt had no use of "|" in it (just words, commas, and parentheses), and nothing else that I could see that should have resulted in this warning. This seems like a bug. Could this be related?) As @spyrox noted:
When I look in the I investigated the possibility that it could be refusing to overwrite the original pre-stitched image with the post-stitched image because the file already exists. I tried deleting the pre-stitched image out of Question 1: Is it the case that the stitching is done to an image in the $TEMP folder, which is then supposed to be copied/moved over the originally generated image in the Question 2: Are others who are experiencing this problem experiencing it on Windows? I wonder if there could be a file naming issue relating to backslashes. I saw someone report an error message at some point referring to "extensions_unprompted" rather than "extensions\_unprompted" or "extensions\\_unprompted", which might imply that backslashes are getting removed from paths somehow, possibly due to escaping/unescaping or something similar. (See #129 (comment)) My current "Settings" in the WebUI include: Perhaps one of these could be confusing Unprompted? |
I've tried 7.8, 7.9, 7.9.1, 8.0, and recently 9.0/9.2
Zoom Enhance no longer works with current A1111 on 7.8 - 7.9.1; no image is generated for zoom enhance.
On 9.0+ it generates 2 images but does not stitch it to original. Looking at another comment it seems you've changed how Zoom enhance works which no longer utilizes img2img, and new non stitch image looks barely different.
Please revert that change back to img2img I used to love this extension; now it doesn't stitch the images together, it doesn't go to %temp% folder, and it barely changes from the original.
I really wish I had never updated my Auto1111 and the extension itself; as now I cannot get older versions of SD a1111 to run properly. And this extension was nearly a MUST for me.
Here is the comment in question "In previous versions (< 8.0.0), [zoom_enhance] would call [img2img] for the upscale, but this was incompatible with extensions that hijack the inference pipeline - ControlNet in particular. Now it uses a monkeypatched process_images_inner() with a clone of the p object, which shouldn't be any slower unless maybe you're running into some memory limitations."
This is not a good change for normal users and even if zoom enhance still worked the stitched image would look barely any different than it did prior. At this point I'd almost like the zoom enhance extension to be on its own so that it doesn't conflict with these.
The text was updated successfully, but these errors were encountered: