CompVis / stable-diffusion

A latent text-to-image diffusion model
https://ommer-lab.com/research/latent-diffusion-models/
Other
67.99k stars 10.13k forks source link

Win 11 Python errors #122

Open casterle opened 2 years ago

casterle commented 2 years ago

I just downloaded the program, but am unable to get it running. Not being familiar with Python, I'm not sure how to proceed.

Here are the errors I see in the command windows:

torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: torch_jit_internal.py:751: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x0000020F710D6EE0>. warnings.warn(f"Unable to retrieve source for @torch.jit._overload function: {func}.") torch_jit_internal.py:751: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x0000020F710FC280>. warnings.warn(f"Unable to retrieve source for @torch.jit._overload function: {func}.")

atypicalconsortium commented 2 years ago

Have you downloaded Python at all on your system?

Make sure you have:

https://www.python.org/downloads/windows/

Good vid tuts part one, and part two:

https://youtu.be/z99WBrs1D3g and https://youtu.be/F-d67sUUFic

Make sure you also have git: https://gitforwindows.org/

casterle commented 2 years ago

Thanks for the help.

If I type 'py' in PowerShell, a Python 3.10.6 interpreter opens.

git -v yields: git version 2.37.2.windows.2

I'll take a look at the videos you linked. From a YouTube video I watched, I was under the impression that all I needed to do was download the archive, unzip and run.

casterle commented 2 years ago

Following one of the videos you linked to, I have Stable Diffusion installed and running from the command line. When I try to run the GUI, I still see:

torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: torch_jit_internal.py:751: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x000001DD92326F70>. warnings.warn(f"Unable to retrieve source for @torch.jit._overload function: {func}.") torch_jit_internal.py:751: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x000001DD9234B310>. warnings.warn(f"Unable to retrieve source for @torch.jit._overload function: {func}.")

casterle commented 2 years ago

Anyone?