-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMD Windows - can't generate anything #624
Comments
I second this, but I am jealous that you have 25x faster Total time... |
Haha, let's first all get an image generated, who knows what's happening here. Not sure those 10.15 seconds actually generated anything. No idea what's happening here. |
Amd 8gb cannot be used C:\Users\lz\Downloads\Fooocus_win64_2-1-25>.\python_embeded\python.exe -m pip uninstall torch torchvision torchaudio torchtext functorch xformers -y C:\Users\lz\Downloads\Fooocus_win64_2-1-25>.\python_embeded\python.exe -m pip install torch-directml C:\Users\lz\Downloads\Fooocus_win64_2-1-25>.\python_embeded\python.exe -s Fooocus\entry_with_update.py --directml To create a public link, set |
this worked for me too, thank you so much! |
There is no torchsde_brownian. What is happening here? |
it's torchsde_brownian |
put a "" between "torchsde" and "_brownian" |
-\\\- |
put a \ between "torchsde" and "_brownian" |
Okay no need to spam LMAO |
me too! |
same here |
This fix has worked, but 2.7 it/s on RX 7900 XTX... |
This fix has worked, but 2.3 it/s on RX 7900 XTX... |
same. a part i found interesting as well was the "Total VRAM 1024 MB," its almost like its grabbing the boards local or something. 🤔 also what seems like a memory leak. just having the gradio live window open it starts ramping and doesnt stop till i close it. 32gb of ram too 🤔 |
AMD Radeon RX 6700 XT |
After applying the fix above, now getting the allocation error:
RX 5700XT, Windows 10 |
For memory allocation problem I found quick fix, but use with caution. |
I have do this but still memory error |
After making both fixes in this thread, I'm still getting the allocation error.
RX 5700XT, Win 10 |
One image with all defaults settings took more than 4 minutes. Is this normal? Pc specs:
Am I doing something wrong or do I have a bootleneck? Also the fix worked:
|
@MatSkrzat Appreciate the suggestion. I tried bumping the memory As suggested:Total VRAM 8192 MB, total RAM 32700 MB Matching the total memory in my video card (12GB)mem_total = 1024 * 12 * 1024 * 1024 Total VRAM 12288 MB, total RAM 32700 MB Both yielded the same out of memory error
|
AMD Radeon RX6600, windows 10 |
Same "out of memory" issue here after using both fixes GPU rx7900xt 20GB |
i did teh torchsde fix but still im getting this error
|
Same here |
Same error after doing both steps .\python_embeded\Lib\site-packages\torchsde_brownian\brownian_interval.py Line 32
to
then tried to alloctae more VRAM Go to \Fooocus\backend\headless\fcbh\model_management.py In line 95 change Still getting same error "could not allocate tensor with 165150720 bytes. there is not enough gpu video memory available!" Note: I remeber messing with this file "cli_args.py" and I got it working then stopped, wanted to mention it incase someone can make use of the info Change from
To
PC specs 12 GB GPU & 32GB Ram |
I am trying to run this on my environment with RX5500M 4GB + Ryzen 5 5600H + 24GB. Now I am facing
|
@ljnath, try running run.bat instead. |
@wcalvert , I tried the same. I face the same error message. |
I'm also having issues with CUDA on AMD hardware. Hardware:
Have done the following fixes: Changed brownian_interval.py - Changed model_management.py - Changed cli_args.py (See below)
Still getting CUDA error when running |
If I apply this fix I get a warning that it is cpu rendering.
Anybody having similiar issues? Edit: |
I have also applied the fixes; Changed brownian_interval.py - generator = torch.Generator().manual_seed(int(seed)) - Line 32 Changed model_management.py - mem_total = 8192 * 1024 * 1024 - line 95 Im still getting I have a 580 RX and win10. Does anyone know if this means that it's trying to allocate too much or if my hardware is not good enough? I don't have enough experience to know the difference. Thanks |
I found a comment in another issue that is speculating the problem is due to a deeper code issue, memory allocation inside a loop, which is causing the out of memory problem: |
I tried everything here too on my 64gb of RAM and 6700xt. It always says it is out of memory before it even gets started. Hoping this gets fixed because I was able to run it on my Mac and the results are lovely. But it's an hour per image. |
I have exactly the same issue. I got a PC with 64gb of RAM and a 6600M. Same memory problem. I also was able to run it on my Mac but over 1 hour per image. |
Following the advice from this comment #1278 , and reverting back to an older version, fixed the running out of memory runtime error while generating images for me. It's a workaround until a newer version fixes the problem. |
Editing the torchsde file did not work. |
Downloaded the program, pasted the models (2 checkpoint files and one inpaint) (already had them downloaded).
Edited the run.bat file according to what it said under Windows(AMD GPUs)
Tried generating an image, and got an error. I'm pasting my entire CMD log.
The text was updated successfully, but these errors were encountered: