Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

Unable to generate image in Fooocus.

Open danteocualesjr opened this issue 1 year ago • 5 comments

Describe the problem I've tried using Fooocus today. I followed the steps here and downloaded SDXL (I'm using Mac): https://github.com/lllyasviel/Fooocus

When running the 'python entry_with_update.py' command, it takes me to http://127.0.0.1:7865/ but when clicking on "Generate", no image is generated (see screenshot below).

Screenshot 2023-12-05 at 3 55 09 PM

Full Console Log RuntimeError: MPS backend out of memory (MPS allocated: 6.49 GB, other allocations: 298.97 MB, max allowed: 6.77 GB). Tried to allocate 20.00 KB on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure). Total time: 57.06 seconds

danteocualesjr avatar Dec 05 '23 07:12 danteocualesjr

I am new to using Fooocus, but i think this just means that your system does not have enough memory to load the dependent ML modules like Pytorch or the image generation Model itself, or your OS has restricted its memory usage.

You can check here to find an solution.

Krupakar-Reddy-S avatar Dec 05 '23 09:12 Krupakar-Reddy-S

Do you know how I can free up my memory? These are the specs in my MacBook:

Memory: 16 GB 2667 MHz DDR4 Storage: 306.27 GB available of 499.96 GB

Looks like I have enough space so I'm confused why it's throwing an error.

danteocualesjr avatar Dec 07 '23 00:12 danteocualesjr

After running the run.bat it downloaded a 6.64G file and now it took me to Fooocus 2.1.854 and when generating an image it shows an error. please tell me how I can fix this error. Screenshot (41)

mohanvaidya avatar Dec 22 '23 07:12 mohanvaidya

After running the run.bat it downloaded a 6.64G file and now it took me to Fooocus 2.1.854 and when generating an image it shows an error. please tell me how I can fix this error. Screenshot (41)

same problem and noone heres help

Amit30swgoh avatar Dec 24 '23 13:12 Amit30swgoh

image image image anyone in the world ever had or know or can help about this problem ? do i need to send you 1000$ to help me ?

Amit30swgoh avatar Dec 24 '23 13:12 Amit30swgoh

Solution: see https://github.com/lllyasviel/Fooocus/blob/main/troubleshoot.md#system-swap and https://github.com/lllyasviel/Fooocus/issues/1139 @Amit30swgoh 1000$ pls XD

mashb1t avatar Dec 30 '23 14:12 mashb1t

Solution: see https://github.com/lllyasviel/Fooocus/blob/main/troubleshoot.md#system-swap and #1139 @Amit30swgoh 1000$ pls XD

Ty friend ! its old msg didnt close it 1000$ 💕💕💕

Amit30swgoh avatar Dec 30 '23 14:12 Amit30swgoh