CompVis / stable-diffusion

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

[Problem]: DLL load failed while importing _dlib_pybind11 #774

Open ichelp opened 11 months ago

ichelp commented 11 months ago

python .\scripts\txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms --ckpt models/sd-v2-768-ema.ckpt --skip_grid --n_samples 1

OS: Windows 11 Nvidia RTX 2070 Memory: 32G RAM Python: 3.8.5 Conda 23.7.2

Problem:

C:\Users\plusg\AppData\Roaming\Python\Python310\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\plusg\AppData\Roaming\Python\Python310\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source? warn( Traceback (most recent call last): File "D:\www\Python\compvis-stable-diffusion\scripts\txt2img.py", line 17, in from ldm.util import instantiate_from_config File "C:\Program Files\Python\Python310\lib\site-packages\ldm.py", line 3, in import dlib File "C:\Users\plusg\AppData\Roaming\Python\Python310\site-packages\dlib__init__.py", line 19, in from _dlib_pybind11 import * ImportError: DLL load failed while importing _dlib_pybind11: The specified module could not be found.