Comments (12)
Upscaling is now possible in v2.0.12 via Image-2-Image - see example in Wiki.
What a legend! Thank you.
from fooocus-mre.
@Acephalia Simple upscaler models I tested so far are unable to understand broader context of the image, and they tend to introduce bad-looking artifacts (like sharpening areas of the image that shouldn't be sharpened) - so for the time being I'd just stick to img2img method powered by full SDXL models.
Bonus feature of this approach: you can also play with img2img parameters, seed, prompt, and Control-LoRAs to check different variants :).
Yep that does make sense and I'm definitely liking this approach.
The only thing I'm finding a tad tedious is to manually calculate the upscale values and enter it in.
How complex would it be to add a slider for the upscale size? ex 1x-2x range? or even a simple checkbox for 2x to just double it? Not a deal breaker in any way but definitely be a nice QOL add on.
from fooocus-mre.
I think something along the lines of A1111's Hires fix would really hit the sweet spot. Amazing work @MoonRide303, also recommend adding a coffee/donate button somewhere so we can pitch in to support the work.
from fooocus-mre.
Upscaling is now possible in v2.0.12 via Image-2-Image - see example in Wiki.
from fooocus-mre.
@Acephalia With support for img2img and custom resolutions already in place I just needed to add some small tweaks in code preparing img2img input - I should think of it earlier, to be honest :).
from fooocus-mre.
@Acephalia With support for img2img and custom resolutions already in place I just needed to add some small tweaks in code preparing img2img input - I should think of it earlier, to be honest :).
The fact that you already had it partially implemented = legend x2
I gave it a go and it works pretty well. Is it possible to extend it to perhaps use an upscaler model? Or do you reckon running it back purely through SDXL and the refiner gives better results?
from fooocus-mre.
@Acephalia Simple upscaler models I tested so far are unable to understand broader context of the image, and they tend to introduce bad-looking artifacts (like sharpening areas of the image that shouldn't be sharpened) - so for the time being I'd just stick to img2img method powered by full SDXL models.
Bonus feature of this approach: you can also play with img2img parameters, seed, prompt, and Control-LoRAs to check different variants :).
from fooocus-mre.
@Acephalia Yeah, it should be simpler - people shouldn't have to manually calculate resolutions. I will try figuring something out.
from fooocus-mre.
@Acephalia Yeah, it should be simpler - people shouldn't have to manually calculate resolutions. I will try figuring something out.
I have to sign off for the evening but I was tinkering around a bit and might be able to help. Just need to figure out how to get the math function to overwrite the selected gradio value. Will report back tomorrow.
from fooocus-mre.
@Acephalia It's not the math or Gradio - I was rather wondering how perfect UI for it should look like - cause it's pretty crowded already, and pushing even more stuff in there will just slowly turn it into another SD web UI, full of buttons and slider everywhere.
from fooocus-mre.
@MoonRide303 ah yes. The ui problem. It’s inevitable with more customisation options. Happy mediums I guess.
Could you potentially group all extra parameters under a expander that is contracted by default to clean it up?
My suggestions would be to :
1.Revision settings to go under one group.
2. Control Net Canny could be one group
3. CN depth another.
4. Move CN model selection to respective group in CN tab? (I know the models tab is for models but it might be more intuitive to have them with the CN settings.
5. Loras could be contracted by default?
Irrespectively; adding a slider to upscale either under the resolution or image2image tab isn’t going to make it an eye sore imho. It’s still very streamlined and far away from auto1111 territory.
from fooocus-mre.
Higher resolutions don't really work too well in txt2img (SDXL needs to stay around 1 MP when generating from scratch), so I made dedicated Image-2-Image Scale slider, working only in img2img mode - should be much more convenient to use, now :).
1 + 2 + 3 good idea, 4 +5 keeping as it is (at least for now).
Done as commit 426088e (part of v2.0.18).
No plans for face restorations in nearby future, so nothing more left to do in this issue - closing.
from fooocus-mre.
Related Issues (20)
- JugernautXL not recognized HOT 2
- I get an error when I launch the tool - 'Lora file not found!' HOT 2
- Generates without any problem first time, then runs out of ram.
- The installation of V2.0.78.5 failed many times and the following error message appeared. What is the reason? HOT 1
- weird preview generating problem here and in the main repo
- My boss, MRE version 2.1 ready? HOT 12
- load_settings, e: 'utf-8' codec can't decode byte 0xd7 in position 1206: invalid continuation byte HOT 1
- Extreme RAM usage on colab
- fooocus-MRE loads model on every startup HOT 1
- All of a sudden
- How to use SDXL CHECKPOINTS that are in subfolders?
- [FIXed] Colab Error WARNING[XFORMERS] HOT 1
- running an error message
- Error while deserializing header: HeaderTooSmall
- ERROR: Failed building wheel for pygit2sudo
- paths.json not recognized
- Colab Error – xFormers wasn't build with CUDA support
- Ordering of Models and Loras
- Running different models similar to running different styles
- complaints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fooocus-mre.