Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

[Bug]: Custom aspect ratios are not taking effect with 'Anime' preset.

Open ElektroStudios opened this issue 1 year ago • 5 comments

Checklist

  • [x] The issue has not been resolved by following the troubleshooting guide
  • [x] The issue exists on a clean installation of Fooocus
  • [x] The issue exists in the current version of Fooocus
  • [x] The issue has not been reported before recently
  • [ ] The issue has been reported before but has not been fixed yet

What happened?

Custom aspect ratios works without any issues for 'Initial' preset, however they are not taking effect with 'Anime' preset:

Image

Is this a bug, or I'm missing something to do?.

I just saw a video on Youtube of a person using 'Anime' preset using default settings and Fooocus generated a perfect "widescreen" picture for him... then why in my case it generates this kind of vertical portrait by default using a 16:9 aspect ratio?.

Please take into account that I am VERY new (rookie) with Google Colab and Fooocus. In fact I'm using Colab and Fooocus for first time and less than 1 hour. It was difficult for me trying to investigate for clues and to figure out how to start just adding custom resolutions. Thanks in advance for your help and consideration trying to guide me like a noob.

What web browser you are using Mozilla Firefox (Developer Edition) v136.0b7 (64-bit)

Additional context My config.txt file content:

{
    "path_checkpoints": [
        "/content/Fooocus/models/checkpoints"
    ],
    "path_loras": [
        "/content/Fooocus/models/loras"
    ],
    "available_aspect_ratios": [
        "1728*576",
        "1920*1080",
        "3840*2160"
    ],
    "path_embeddings": "/content/Fooocus/models/embeddings",
    "path_vae_approx": "/content/Fooocus/models/vae_approx",
    "path_vae": "/content/Fooocus/models/vae",
    "path_upscale_models": "/content/Fooocus/models/upscale_models",
    "path_inpaint": "/content/Fooocus/models/inpaint",
    "path_controlnet": "/content/Fooocus/models/controlnet",
    "path_clip_vision": "/content/Fooocus/models/clip_vision",
    "path_fooocus_expansion": "/content/Fooocus/models/prompt_expansion/fooocus_expansion",
    "path_wildcards": "/content/Fooocus/wildcards",
    "path_safety_checker": "/content/Fooocus/models/safety_checker",
    "path_sam": "/content/Fooocus/models/sam",
    "path_outputs": "/content/Fooocus/outputs"
}

Steps to reproduce the problem

Just edited the config.file, then downloaded 'Anime' preset and tried to use it.

What should have happened?

...it's an obvious thing.

What browsers do you use to access Fooocus?

Mozilla Firefox

Where are you running Fooocus?

Cloud (Google Colab)

What operating system are you using?

Windows 10

Console logs

Sorry, I don't have.

Additional information

No response

ElektroStudios avatar Feb 20 '25 23:02 ElektroStudios

You can try my fork, you can specify the aspect ratio directly in the prompt: https://github.com/Edwardsmith35/Fooocus-Enhanced

Edwardsmith35 avatar Feb 24 '25 17:02 Edwardsmith35

@ElektroStudios Using your fork I get out of memory error on google colab using SAI model on T4. But the official version works fine with SAI model without any error on T4.

crypt0inf0 avatar Mar 25 '25 15:03 crypt0inf0

@crypt0inf0 You have made a mistake in mentioning the right user! 🙆‍♂

Cheers!

And thanks to Edwardsmith35 for his fork.

ElektroStudios avatar Mar 25 '25 15:03 ElektroStudios

@ElektroStudios I'm sorry, My bad. @Edwardsmith35 Can you help me?

crypt0inf0 avatar Mar 26 '25 04:03 crypt0inf0

@ElektroStudios I'm sorry, My bad. @Edwardsmith35 Can you help me?

I think the problem is that you're using a resolution higher than what Colab can Handle, you should only use aspect ratios that are officially supported, 1920 × 1080 is too high for Colab, I don't even think SDXL models support this resolution.

Edwardsmith35 avatar Mar 29 '25 09:03 Edwardsmith35