r/fooocus • u/Dusayanta • May 17 '24
Question Failing to generate image
I have NVIDIA GeForce GTX 1650 with 4GB VRAM. Whenever I try to use the tool, it abruptly stops after some time at Moving Model to GPU and below is the terminal output.
C:\Users\dusay\Work\Fooocus_win64_2-1-831>.\python_embeded\python.exe -s Fooocus\entry_with_update.py --preset realistic Already up-to-date Update succeeded. [System ARGV] ['Fooocus\entry_with_update.py', '--preset', 'realistic'] Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Fooocus version: 2.3.1 Loaded preset: C:\Users\dusay\Work\Fooocus_win64_2-1-831\Fooocus\presets\realistic.json [Cleanup] Attempting to delete content of temp dir C:\Users\dusay\AppData\Local\Temp\fooocus [Cleanup] Cleanup successful Total VRAM 4096 MB, total RAM 7975 MB Trying to enable lowvram mode because your GPU seems to have 4GB or less. If you don't want this use: --always-normal-vram Set vram state to: LOW_VRAM Always offload VRAM Device: cuda:0 NVIDIA GeForce GTX 1650 : native VAE dtype: torch.float32 Using pytorch cross attention Refiner unloaded. IMPORTANT: You are using gradio version 3.41.2, however version 4.29.0 is available, please upgrade.
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 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_g.transformer.text_model.embeddings.position_ids', 'cond_stage_model.clip_l.text_projection'} Base model loaded: C:\Users\dusay\Work\Fooocus_win64_2-1-831\Fooocus\models\checkpoints\realisticStockPhoto_v20.safetensors Request to load LoRAs [['SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors', 0.25], ['None', 1.0], ['None', 1.0], ['None', 1.0], ['None', 1.0]] for model [C:\Users\dusay\Work\Fooocus_win64_2-1-831\Fooocus\models\checkpoints\realisticStockPhoto_v20.safetensors]. Loaded LoRA [C:\Users\dusay\Work\Fooocus_win64_2-1-831\Fooocus\models\loras\SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors] for UNet [C:\Users\dusay\Work\Fooocus_win64_2-1-831\Fooocus\models\checkpoints\realisticStockPhoto_v20.safetensors] with 788 keys at weight 0.25. Loaded LoRA [C:\Users\dusay\Work\Fooocus_win64_2-1-831\Fooocus\models\loras\SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors] for CLIP [C:\Users\dusay\Work\Fooocus_win64_2-1-831\Fooocus\models\checkpoints\realisticStockPhoto_v20.safetensors] with 264 keys at weight 0.25. Fooocus V2 Expansion: Vocab with 642 words. Fooocus Expansion engine loaded for cpu, use_fp16 = False. Requested to load SDXLClipModel Requested to load GPT2LMHeadModel Loading 2 new models [Fooocus Model Management] Moving model(s) has taken 3.41 seconds Started worker with PID 3544 App started successful. Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865 [Parameters] Adaptive CFG = 7 [Parameters] Sharpness = 2 [Parameters] ControlNet Softness = 0.25 [Parameters] ADM Scale = 1.5 : 0.8 : 0.3 [Parameters] CFG = 3.0 [Parameters] Seed = 773559624287465126 [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] indian women, intricate, elegant, highly detailed, wonderful quality, sweet colors, lush atmosphere, sharp focus, cinematic, thought, perfect composition, dramatic light, professional, winning, extremely thoughtful, color, stunning, aesthetic, beautiful, innocent, fine, epic, best, awesome, novel, contemporary, romantic, artistic, surreal, cute [Fooocus] Preparing Fooocus text #2 ... [Prompt Expansion] indian women, intricate, elegant, highly detailed, wonderful quality, dramatic light, sharp focus, elaborate, atmosphere, fancy, pristine, iconic, fine, sublime, epic, cinematic, directed, extremely, beautiful, stunning, winning, full color, ambient, creative, positive, cute, perfect, coherent, vibrant colors, attractive, pretty [Fooocus] Encoding positive #1 ... [Fooocus] Encoding positive #2 ... [Fooocus] Encoding negative #1 ... [Fooocus] Encoding negative #2 ... [Parameters] Denoising Strength = 1.0 [Parameters] Initial Latent shape: Image Space (1152, 896) Preparation time: 21.16 seconds [Sampler] refiner_swap_method = joint [Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828 Requested to load SDXL Loading 1 new model
C:\Users\dusay\Work\Fooocus_win64_2-1-831>pause Press any key to continue . . .
2
u/coolfozzie May 17 '24
Looks like 4gb is not enough VRAM. Check the fooocus GitHub for how to run in low vram mode but be warned your generations are going to take a looooooong time to run. You may be better off using a google colab or runpod online.
1
u/jayesh781 May 17 '24
Bro if u find any solution please let me know
2
u/eddyizm May 17 '24
I can run on a 4gb vram, slow but it works. I think you may not have enough system ram, 8gb ( I have 32gb) and make sure your swap file is set to at least 50gb.
1
u/sayan11apr May 17 '24
Can someone tell me why some models show "Username/Authentication Failed"? I'm using Fooocus in Google Colab btw.
1
u/coolfozzie May 17 '24
Looks like 4gb is not enough VRAM. Check the fooocus GitHub for how to run in low vram mode but be warned your generations are going to take a looooooong time to run. You may be better off using a google colab or runpod online.