lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
41.04k stars 5.76k forks source link

[Bug]: 2.5.2 works only with default model #3395

Closed isntvlbl closed 2 months ago

isntvlbl commented 2 months ago

Checklist

What happened?

When I try to generate with any model except for default Juggernaut Fooocus just stops wit "press any key"

Steps to reproduce the problem

  1. load any downloaded model
  2. Generate

What should have happened?

Start working

What browsers do you use to access Fooocus?

Other

Where are you running Fooocus?

Locally

What operating system are you using?

No response

Console logs

D:\0Fooocus_win64_2-5-0>.\python_embeded\python.exe -s Fooocus\entry_with_update.py
Already up-to-date
Update succeeded.
[System ARGV] ['Fooocus\\entry_with_update.py']
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Fooocus version: 2.5.2
[Cleanup] Attempting to delete content of temp dir C:\Users\Dioh\AppData\Local\Temp\fooocus
[Cleanup] Cleanup successful
Total VRAM 12287 MB, total RAM 32694 MB
Set vram state to: NORMAL_VRAM
Always offload VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 : native
VAE dtype: torch.bfloat16
Using pytorch cross attention
Refiner unloaded.
Running on local URL:  http://127.0.0.1:7865

To create a public link, set `share=True` in `launch()`.
model_type EPS
UNet ADM Dimension 2816
IMPORTANT: You are using gradio version 3.41.2, however version 4.29.0 is available, please upgrade.
--------
Using pytorch attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using pytorch attention in VAE
extra {'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_l.text_projection'}
left over keys: dict_keys(['cond_stage_model.clip_l.transformer.text_model.embeddings.position_ids'])
Base model loaded: D:\0Fooocus_win64_2-5-0\Fooocus\models\checkpoints\juggernautXL_v8Rundiffusion.safetensors
VAE loaded: None
Request to load LoRAs [('sd_xl_offset_example-lora_1.0.safetensors', 0.1)] for model [D:\0Fooocus_win64_2-5-0\Fooocus\models\checkpoints\juggernautXL_v8Rundiffusion.safetensors].
Loaded LoRA [D:\0Fooocus_win64_2-5-0\Fooocus\models\loras\sd_xl_offset_example-lora_1.0.safetensors] for UNet [D:\0Fooocus_win64_2-5-0\Fooocus\models\checkpoints\juggernautXL_v8Rundiffusion.safetensors] with 788 keys at weight 0.1.
Fooocus V2 Expansion: Vocab with 642 words.
D:\0Fooocus_win64_2-5-0\python_embeded\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
Fooocus Expansion engine loaded for cuda:0, use_fp16 = True.
Requested to load SDXLClipModel
Requested to load GPT2LMHeadModel
Loading 2 new models
[Fooocus Model Management] Moving model(s) has taken 0.63 seconds
Started worker with PID 4448
App started successful. Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865
[Parameters] Adaptive CFG = 7
[Parameters] CLIP Skip = 2
[Parameters] Sharpness = 2
[Parameters] ControlNet Softness = 0.25
[Parameters] ADM Scale = 1.5 : 0.8 : 0.3
[Parameters] Seed = 2867317108108257605
[Parameters] CFG = 4
[Fooocus] Loading control models ...
[Parameters] Sampler = dpmpp_2m_sde_gpu - karras
[Parameters] Steps = 30 - 15
[Fooocus] Initializing ...
[Fooocus] Loading models ...
Refiner unloaded.
[Fooocus] Processing prompts ...
[Fooocus] Preparing Fooocus text #1 ...
[Prompt Expansion] girl, light, intricate, elegant, sharp focus, beautiful, highly detailed, formal, colorful, very strong, fine, professional, winning, elaborate complex, background color, cinematic, modern, surreal, inspiring, thought, imposing, perfect, incredible, symmetry, amazing, creative, awesome, pure, attractive, best, dramatic, lovely, cute, magnificent, coherent
[Fooocus] Preparing Fooocus text #2 ...
[Prompt Expansion] girl, epic, fine detail, intricate, elite, elegant, luxury, dramatic ambient light, professional, color, illuminated, sharp focus, beautiful, emotional, highly detailed, striking, rich dynamic background, open composition, cool, charming, amazing, symmetry, perfect, pretty, attractive, cinematic, shining, complex, appealing, coherent, romantic, iconic, best, awesome
[Fooocus] Encoding positive #1 ...
[Fooocus Model Management] Moving model(s) has taken 0.17 seconds
[Fooocus] Encoding positive #2 ...
[Fooocus] Encoding negative #1 ...
[Fooocus] Encoding negative #2 ...
[Parameters] Denoising Strength = 1.0
[Parameters] Initial Latent shape: Image Space (896, 1152)
Preparation time: 4.38 seconds
Using karras scheduler.
[Fooocus] Preparing task 1/2 ...
[Sampler] refiner_swap_method = joint
[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828
Requested to load SDXL
Loading 1 new model
[Fooocus Model Management] Moving model(s) has taken 2.10 seconds
100%|████████████████████████████████████████████████████████████| 30/30 [00:22<00:00,  1.36it/s]
Requested to load AutoencoderKL
Loading 1 new model
[Fooocus Model Management] Moving model(s) has taken 0.16 seconds
[Fooocus] Saving image 1/2 to system ...
Image generated with private log at: D:\0Fooocus_win64_2-5-0\Fooocus\outputs\2024-07-28\log.html
Generating and saving time: 25.71 seconds
[Fooocus] Preparing task 2/2 ...
[Sampler] refiner_swap_method = joint
[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828
Requested to load SDXL
Loading 1 new model
[Fooocus Model Management] Moving model(s) has taken 1.43 seconds
100%|████████████████████████████████████████████████████████████| 30/30 [00:21<00:00,  1.37it/s]
Requested to load AutoencoderKL
Loading 1 new model
[Fooocus Model Management] Moving model(s) has taken 0.16 seconds
[Fooocus] Saving image 2/2 to system ...
Image generated with private log at: D:\0Fooocus_win64_2-5-0\Fooocus\outputs\2024-07-28\log.html
Generating and saving time: 24.61 seconds
[Enhance] Skipping, preconditions aren't met
Processing time (total): 50.33 seconds
Requested to load SDXLClipModel
Requested to load GPT2LMHeadModel
Loading 2 new models
Total time: 54.76 seconds
[Fooocus Model Management] Moving model(s) has taken 0.62 seconds
[Parameters] Adaptive CFG = 7
[Parameters] CLIP Skip = 2
[Parameters] Sharpness = 2
[Parameters] ControlNet Softness = 0.25
[Parameters] ADM Scale = 1.5 : 0.8 : 0.3
[Parameters] Seed = 5639170229168081785
[Parameters] CFG = 4
[Fooocus] Loading control models ...
[Parameters] Sampler = dpmpp_2m_sde_gpu - karras
[Parameters] Steps = 30 - 15
[Fooocus] Initializing ...
[Fooocus] Loading models ...
Refiner unloaded.
model_type EPS
UNet ADM Dimension 2816
Using pytorch attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using pytorch attention in VAE

D:\0Fooocus_win64_2-5-0>pause
Для продолжения нажмите любую клавишу . . .

Additional information

No response

mashb1t commented 2 months ago

This has nothing to do with 2.5.2. Please double-check your swap and try again.

See https://github.com/lllyasviel/Fooocus/blob/main/troubleshoot.md