Giter VIP home page Giter VIP logo

Comments (8)

barepixels avatar barepixels commented on June 20, 2024 1

Forgot the link to the original paper but for SDXL one should use these dimensions (all numbers are divided by 64 evenly)
For best quality, MoonRise303 insists you use one of the below dimensions. I agree.
aspect ratio
For now, I have a reference sheet that I must open and look at when I want to change resolutions, Kinda pain in the butt

896 x 1152 for 3:4 or 4:5 crop
1152 x 896 for 4:3 or 5:4 crop

832 x 1216 for 2:3 crop
1216 x 832 for 3:2 crop

1344 x 768 for 16:9 crop

1408 x 704 spherical 360 pano

1536 x 640 anamorphic movie format

they are the ideal size to generate with minimal crop loss to match common industry ratios. Yes you will have to crop some off before you go to print

from fooocus-mre.

barepixels avatar barepixels commented on June 20, 2024 1

In an ideal world, we would be able to make our own list for the pull-down and save as a josn file. This will shorten the list:

  1. not having to see resolutions we would never use
  2. change the wording in the pull-down, such as "1408 x 704 spherical 360 pano"
  3. no scrolling madness
  4. short and elegant
  5. even add (not recommended) not sdxl friendly sizes such as 1920 x 1200, but hey if you like the results it should be your choice.

from fooocus-mre.

Ptbird1 avatar Ptbird1 commented on June 20, 2024

2nd this, I'm lucky enough to have a beefy PC and like making 1920x1200 images, mostly for paintings and landscapes but SDXL can handle the beefier resolutions, maybe hide it in advanced so people don't start complaining about how their 512x4000 image looks bad, while also being easier than having to edit the settings in notepad and have the users add them themselves as I've been doin

from fooocus-mre.

Ptbird1 avatar Ptbird1 commented on June 20, 2024

That reference sheet is super helpful! Definitely gonna be saving that :)

from fooocus-mre.

barepixels avatar barepixels commented on June 20, 2024

check this out
SDXL Aspect Ratio

from fooocus-mre.

MoonRide303 avatar MoonRide303 commented on June 20, 2024

@barepixels

  1. Those aspect ratio values are not correct (I use math to calculate correct AR for given resolution in MRE).
  2. I'd rather stick to official SDXL resolution list by default.
  3. I will look into customising resolution list (via resolutions.json, or something like that), so people who would like to use fewer resolutions could adjust that list to their needs in simple way.

from fooocus-mre.

barepixels avatar barepixels commented on June 20, 2024

possible solution?

@MoonRide303 please provide 2 versions: original "resolutions.py" and "alternative-resolutions.py"

The "alternative-resolutions.py" displays the pull-down menu that read like this. This way we can opt for the shorter version with (ideal size for industry crop), by duplicating and changing the file name to "resolutions.py" when Fooocus gets an update

SDXL Aspect Ratio

Case example of industry crop

  1. Instagram only shows images as 1x1, 4x5, and 16x9 If your upload has the wrong ratio Instagram will auto-crop for you. Well, it may crop off an area you do not want. But if you prepare the image before you upload, you have control over how it gets cropped, how it will be displayed

  2. 8x10 inches is a very very common print resolution.

  3. 16x9 is common in wide-screen video. If you want to include your images with other footage you will have to crop.

The key here is to quickly identify the nearest SDXL resolution to actually cropping for traditional size with minimal loss

from fooocus-mre.

MoonRide303 avatar MoonRide303 commented on June 20, 2024

Done. I've added support for custom resolutions list (you can define your own in resolutions.json), and also for custom resolutions (you can just type something like "1280x640" in Resolution field, now). Commit d2942a0.

from fooocus-mre.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.