Replies: 2 comments
-
Heya, I never heard of Forge before, but I did use SDXL for the first time the other day. I'll check out Forge at some point, then decide where I want to go from there. I will say I kinda want to do away with "legacy hires fix" because it feels old. |
Beta Was this translation helpful? Give feedback.
-
Hey, Forge is full of "optimizations". It's fine for low-end cards with 6-8gb, but definitely doesn't make much sense with 12gb of more (with a decent a1111 and nvidia driver config). I don't really understand your comparison. If the image is not the same, then the problem lies elsewhere and it's obviously not generating the same 'base image', for sure. I implemented a 'Details++' option as one of the ADetailer choices on purpose, to not complexify the options and keep 'highres_fix'. My point is not to compare with your images, as i edited a lot of things in my fork of the bot, but more about the logic. /draw prompt: A cat seed: 6969696969 batch: 1 /draw prompt: A cat seed: 6969696969 highres_fix: 4x_foolhardy_Remacri batch: 1 /draw prompt: A cat seed: 6969696969 adetailer: Details++ batch: 1 /draw prompt: A cat seed: 6969696969 adetailer: Details++ highres_fix: 4x_foolhardy_Remacri batch: 1 Here are the links for the images, for a full screen comparison, in the same order : So, in fine, my point is that it would be more logical to be able to cumulate/choose the 'legacy hires' with anything that can be called a 'new hires'. As the legacy hires is part of the txt2img payload, not img2img. +1 for the ratios. I also implemented a 'size_ratio' option for /Draw and a button for /Generate. Cheers ! 🥂 |
Beta Was this translation helpful? Give feedback.
-
With the slow move of the user base to forge instead of a1111 (which I have tested and your bot works just fine on forge btw) SDXL models became more accessible and use less vram, allowing images of up to 1800x2400 or higher on 16gb of vram. The problem is this method requires generating the initial image at one of the SDXL predefined resolutions first (832x1216 for example) and then using hi-res fix to increase by 1.5x/2x etc. The legacy implementation of hires fix defaults the initial generation to very low resolutions around 512x512 bucketing, and then does a 3x or 4x to reach the desired resolution, making SDXL images look awful when legacy hires fix is on.
Here I am proposing two alternatives however I am not very good at coding or the actual backend of SD to help with the actual implementation.
Great bot by the way. Thank you for all the work you have done up to this point. This allows me to easily share my idle gpu with my friends without having to deal with gradio vulnerabilities, multi-account queueing and account/password sharing and at the same time allowing them to easily generate images without having to learn how webui works.
As a sidenote, SDXL works best with some predefined resolutions, so a resolution picker would be helpful in case of SDXL models. In case you require a cheatsheet for the SDXL buckets the common ones are:
This is an example of me first using
![11945950-1](https://private-user-images.githubusercontent.com/28767197/309556457-db56aa58-68ab-4d68-ba7a-d909ea66e4b2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODE0NTEsIm5iZiI6MTczOTE4MTE1MSwicGF0aCI6Ii8yODc2NzE5Ny8zMDk1NTY0NTctZGI1NmFhNTgtNjhhYi00ZDY4LWJhN2EtZDkwOWVhNjZlNGIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5NTIzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1NmRlNTQwZjdmZWFmZDEwNjU4MDJkNzZlZGQ1YzEyMzY0YjkyODhkYjNlY2UxYWIzOGQ3ZDQ5ODE5Yzk2MWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cg2OObWMssYJkHReQzasGf6Z5xqv-pUlXILEPEzVDmI)
![3990134569-1](https://private-user-images.githubusercontent.com/28767197/309556834-81f5ed74-6a29-4bb8-8893-af1cca180846.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODE0NTEsIm5iZiI6MTczOTE4MTE1MSwicGF0aCI6Ii8yODc2NzE5Ny8zM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ODg3ODhkNmZiNDgxNTkyMDk1MTE5MTM0ZjQwYzlmMzJkYzNlNDIzZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Op3X-Yqk2hvyHWC7uwJBLWkL0hdPHU3rfK9P0XyRXVs)
/draw prompt: cat
at one of the standard SDXL resolutions 832x1216Then, I saved the image and ran a second command
/draw prompt:cat init_image:cat.png width:1248 height:1824 strength:0.5
And lastly this is how it looks if I run
/draw prompt:cat seed:<same as initial seed> highres_fix:4x-AnimeSharp width:1248 height:1824
(due to the initial image being generated at a lower resolution due to legacy hires fix, the seed is pretty much irrelevant anyway)Beta Was this translation helpful? Give feedback.
All reactions