Issues using LDSR upscaling in AUTOMATIC1111's webGUI

Question

Hello all,

I've been using the webGUI with no issues for a while now, but when I try to use LDSR upscaling it fails to download it. Since the issue started I've had no issue pulling down other packages, so it's unlikely to be my environment.

The traceback (full in comments) says it's an SSL error with the download target, and so I checked the only URL that isn't commented out in download_util.py (the script the webGUI calls)

"https://docs.google.com/uc?export=download"

and I just get a 404 error. Any idea what's going on?

Posted Oct 14, 2022, 11:35 PM UTC · edited

14

1- Open your anaconda terminal in your stable-diffusion-webui\repositories directory.

git clone https://github.com/Hafiidz/latent-diffusion.git

2- Next time you try using LDSR in upscale or extra it will download the model.ckpt and apply it automatically (1.9gb)

3- If this does not happen as in my case, I manually downloaded the LDSR checkpoint from:

https://heibox.uni-heidelberg.de/f/578df07c8fc04ffbadf3/?dl=1 to \stable-diffusion-webui\models\LDSR\model.ckpt

and

https://heibox.uni-heidelberg.de/f/31a76b13ea27482981b4/?dl=1 to \stable-diffusion-webui\models\LDSR\project.yaml

After doing this, LDSR worked!

2
athirdpathOP•

Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1037, in _send_output self.send(msg) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 975, in send self.connect() File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1454, in connect self.sock = self._context.wrap_socket(self.sock, File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1071, in _create self.do_handshake() File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\AI\stable-diffusion-webui\modules\ui.py", line 187, in f res = list(func(*args, **kwargs)) File "D:\AI\stable-diffusion-webui\webui.py", line 64, in f res = func(*args, **kwargs) File "D:\AI\stable-diffusion-webui\modules\extras.py", line 95, in run_extras res = upscale(image, extras_upscaler_1, upscaling_resize, resize_mode, upscaling_resize_w, upscaling_resize_h, upscaling_crop) File "D:\AI\stable-diffusion-webui\modules\extras.py", line 85, in upscale c = upscaler.scaler.upscale(image, resize, upscaler.data_path) File "D:\AI\stable-diffusion-webui\modules\upscaler.py", line 62, in upscale img = self.do_upscale(img, selected_model) File "D:\AI\stable-diffusion-webui\modules\ldsr_model.py", line 49, in do_upscale ldsr = self.load_model(path) File "D:\AI\stable-diffusion-webui\modules\ldsr_model.py", line 35, in load_model model = load_file_from_url(url=self.model_url, model_dir=self.model_path, File "D:\AI\stable-diffusion-webui\venv\lib\site-packages\basicsr\utils\download_util.py", line 98, in load_file_from_url download_url_to_file(url, cached_file, hash_prefix=None, progress=progress) File "D:\AI\stable-diffusion-webui\venv\lib\site-packages\torch\hub.py", line 593, in download_url_to_file u = urlopen(req) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 519, in open response = self._open(req, data) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)>

1
flux123•

I have the same, no idea how to fix.

1

open your anaconda terminal in your stable-diffusion-webui\repositories directory.

git clone https://github.com/Hafiidz/latent-diffusion.git

next time you try using LDSR in upscale or extra it will download the model.ckpt and apply it automatically (1.9gb)

1
[deleted]•

[deleted]

1
flux123•

Awesome, thank you!

1