Closed gurilagardnr closed 1 year ago
Does other software like ComfyUI still work on your device?
ComfyUI also produces NaNs.
On Fri, Jul 28, 2023, 6:10 AM dhwz @.***> wrote:
Does other software like ComfyUI still work on your device?
— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12131#issuecomment-1655433233, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBSEDF23GUAOZ54N2AVU6CDXSOFZ3ANCNFSM6AAAAAA23EMH3Q . You are receiving this because you authored the thread.Message ID: @.***>
Hm maybe a hardware defect?
That's the way I am leaning. But, I wanted to put this out there just in case someone one day has a eureka moment
On Fri, Jul 28, 2023, 12:03 PM dhwz @.***> wrote:
Hm maybe a hardware defect?
— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12131#issuecomment-1655939125, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBSEDFYNSTVTUIZNNVSDQYDXSPPFJANCNFSM6AAAAAA23EMH3Q . You are receiving this because you authored the thread.Message ID: @.***>
Then, you may want to repost this to the torch library repository. What gpu is it?
It's 4070ti 12gb, and, that is a very good suggestion.
On Sat, Jul 29, 2023, 1:43 AM ClashSAN @.***> wrote:
Then, you may want to repost this to the torch library repository. What gpu is it?
— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12131#issuecomment-1656565720, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBSEDF3HFATXAB3D5ZYJVADXSSPI5ANCNFSM6AAAAAA23EMH3Q . You are receiving this because you authored the thread.Message ID: @.***>
Hey, not sure if you're still having issues, but I encountered this same issue when working with SDXL and found a "fix".
Problem: I encountered the issue when I changed my model from 1.5 to SDXL and trying to img2img. I received the same error message, and changed from refiner to normal and still encountered the issue.
Workaround: Generating a single image with the base SDXL model in txt2img, allowed me to go back to the img2img tab with all previous parameters. Worked completely normal.
Very un-scientific but it works for me now.
thank you for the response. Unfortunately my issue appears to be more severe. Switching models sometimes provides relief, but the issue returns after a half-dozen image generations. The only workaround I have developed at this point is to completely shutdown the pc. At this point i believe it is a bugged interaction between torch 2.0.1 and my msi 4070ti gpu.
On Wed, Aug 2, 2023 at 12:16 AM Kujoz @.***> wrote:
Hey, not sure if you're still having issues, but I encountered this same issue when working with SDXL and found a "fix".
Problem: I encountered the issue when I changed my model from 1.5 to SDXL and trying to img2img. I received the same error message, and changed from refiner to normal and still encountered the issue.
Workaround: Generating a single image with the base SDXL model in txt2img, allowed me to go back to the img2img tab with all previous parameters. Worked completely normal.
Very un-scientific but it works for me now.
— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12131#issuecomment-1661465032, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBSEDFZ3D3CIUVS7RCEL5IDXTHICJANCNFSM6AAAAAA23EMH3Q . You are receiving this because you authored the thread.Message ID: @.***>
-- Adam Chido
239-634-7051
This is an error inside of this webui , some algorithm with math tries to divide zeros and its causing this exception , trying to use -- no half or other weird solution is pretty weird , i did not bought my gpu to use half its speed cmon man , this should be major concern now for devs as its getting worse and worse with each release and looks like nobody is taking a look at this to try to prevent dividing like this
@2blackbar seems you've no clue what you're talking about. The TO already said it's also happening with other software.
As to the software issue, it's weird too. I can't generate any images using SDNEXT, the auto1111 fork. It produces NaNs immediately, regardless of configuration. ComfyUI is more rare, and only consistantly produces NaNs when trying to use SDXL. I have seemed to reach some sort of equilibrium with automatic1111 where it only consistantly produces NaNs if I use too many dynamic prompts or push hirezfix beyond 1.5 scale. The problem still exists, with complete shutdown's required after a few hundred generations, but I live with it. I swapped the 4070ti for a pny 3060ti and no NaN's were produced by any software. So it is definately an interaction between the MSI 4070ti and stable diffusion software, and something that all three software projects have in common, which is why I believe torch is the culprit at this point.
Found a fix that works 100% of the time https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/12292
I have tried similar, as in, switching model and/or vae with random success and failure. I just finished attempting your method of using an identical, renamed model, with no success. I tried on both auto1111 and sdnext. Thank you for the consideration, however.
On Fri, Aug 4, 2023 at 1:17 AM bWWd @.***> wrote:
Found a fix that works 100% of the time
12292
https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/12292
— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12131#issuecomment-1665014010, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBSEDF5O4JHXAN5ZZA3XCNTXTSAYBANCNFSM6AAAAAA23EMH3Q . You are receiving this because you authored the thread.Message ID: @.***>
-- Adam Chido
239-634-7051
I have the same issue on Mac M1. And the image I got is all black.
Please help give some clue or direction how to fix. Thanks in advance.
Can anyone help me understand:
Why lib diffusers not used here? It is so simple I can produce a image with just lines of pythong codes.
I am also getting exactly similar issue of NaNs , the only thing i can think of is some days ago i tried using SDXL which didnt work prperly for me so i switched back to SD1.5, today when i was trying to generate images i tried changing multiple checkpoints as the images which were getting generated earlier were very good , but today it was not with same settings.... and other time i am getting NaNs issue.... not sure what happen....
Is there an existing issue for this?
What happened?
--no-half --no-half-vae --precision full Nothing helps. Problems only started with torch2.0.1. xformers doesn't matter. sdp doesn't matter. what checkpoint is used, doesn't matter. with or without a vae loaded. with extensions, or with all extensions unloaded. I've done reinstalls. I've tried main, dev. I can't run 1.5 or sdxl. I can't run automatic1111 or it's forks. I've tried every nvidia driver from 320 till current 536. i've reinstalled windows on a separate drive and installed there. I've done parallel installs of different versions of automatic1111. This worked fine for months until a few days ago, prior to the release of 1.5. I've researched and fought with this all week. I have other computers running this without an issue. Are there any clues out there? No, it's not persistent cond cache. I have painstakingly toggled EVERY setting in the ui, and restarted the server. Sometimes I can generate a few images. Sometimes it goes straight to NaNs on the first attempt. Sometimes it outputs something that has nothing to do with the prompt. Sometimes it generates random fractal images, sometimes it looks like static, other times it's the beige random noise. It always ends in NaNs.
Steps to reproduce the problem
What should have happened?
an image should have generated without error
Version or Commit where the problem happens
6ce0161689
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Nvidia GPUs (RTX 20 above)
Cross attention optimization
None
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
I've tried with all extension disabled, and all extensions removed from the extensions directory, and all built-in extensions removed and or disabled
Console logs
Additional information
No response