stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: cant download ldsr upscaler
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
cant download file ssl error
Steps to reproduce the problem
- Go to upscale ldsr 2x
- all options is zero
Downloading: "https://heibox.uni-heidelberg.de/f/578df07c8fc04ffbadf3/?dl=1" to C:\sd\models\LDSR\model.ckpt
Error completing request Arguments: (0, 0, <PIL.Image.Image image mode=RGB size=512x512 at 0x2B77AF08D30>, None, '', '', True, 0, 0, 0, 2, 512, 512, True, 5, 6, 0.5, False) {} Traceback (most recent call last): File "C:\sd\python\lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\sd\python\lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\sd\python\lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\sd\python\lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\sd\python\lib\http\client.py", line 1037, in _send_output self.send(msg) File "C:\sd\python\lib\http\client.py", line 975, in send self.connect() File "C:\sd\python\lib\http\client.py", line 1454, in connect self.sock = self._context.wrap_socket(self.sock, File "C:\sd\python\lib\ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "C:\sd\python\lib\ssl.py", line 1071, in _create self.do_handshake() File "C:\sd\python\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 "C:\sd\modules\call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "C:\sd\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "C:\sd\modules\extras.py", line 197, in run_extras image, info = op(image, info) File "C:\sd\modules\extras.py", line 155, in run_upscalers_blend res = upscale(image, *upscale_args) File "C:\sd\modules\extras.py", line 123, in upscale res = upscaler.scaler.upscale(image, resize, upscaler.data_path) File "C:\sd\modules\upscaler.py", line 64, in upscale img = self.do_upscale(img, selected_model) File "C:\sd\extensions-builtin\LDSR\scripts\ldsr_model.py", line 54, in do_upscale ldsr = self.load_model(path) File "C:\sd\extensions-builtin\LDSR\scripts\ldsr_model.py", line 40, in load_model model = load_file_from_url(url=self.model_url, model_dir=self.model_path, File "C:\sd\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 "C:\sd\venv\lib\site-packages\torch\hub.py", line 593, in download_url_to_file u = urlopen(req) File "C:\sd\python\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "C:\sd\python\lib\urllib\request.py", line 519, in open response = self._open(req, data) File "C:\sd\python\lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "C:\sd\python\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\sd\python\lib\urllib\request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, File "C:\sd\python\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)>
Downloading: "https://heibox.uni-heidelberg.de/f/578df07c8fc04ffbadf3/?dl=1" to C:\sd\models\LDSR\model.ckpt
Error completing request Arguments: (0, 0, <PIL.Image.Image image mode=RGB size=512x512 at 0x2B77AECD540>, None, '', '', True, 0, 0, 0, 2, 512, 512, True, 5, 0, 0.5, False) {} Traceback (most recent call last): File "C:\sd\python\lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\sd\python\lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\sd\python\lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\sd\python\lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\sd\python\lib\http\client.py", line 1037, in _send_output self.send(msg) File "C:\sd\python\lib\http\client.py", line 975, in send self.connect() File "C:\sd\python\lib\http\client.py", line 1454, in connect self.sock = self._context.wrap_socket(self.sock, File "C:\sd\python\lib\ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "C:\sd\python\lib\ssl.py", line 1071, in _create self.do_handshake() File "C:\sd\python\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 "C:\sd\modules\call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "C:\sd\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "C:\sd\modules\extras.py", line 197, in run_extras image, info = op(image, info) File "C:\sd\modules\extras.py", line 155, in run_upscalers_blend res = upscale(image, *upscale_args) File "C:\sd\modules\extras.py", line 123, in upscale res = upscaler.scaler.upscale(image, resize, upscaler.data_path) File "C:\sd\modules\upscaler.py", line 64, in upscale img = self.do_upscale(img, selected_model) File "C:\sd\extensions-builtin\LDSR\scripts\ldsr_model.py", line 54, in do_upscale ldsr = self.load_model(path) File "C:\sd\extensions-builtin\LDSR\scripts\ldsr_model.py", line 40, in load_model model = load_file_from_url(url=self.model_url, model_dir=self.model_path, File "C:\sd\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 "C:\sd\venv\lib\site-packages\torch\hub.py", line 593, in download_url_to_file u = urlopen(req) File "C:\sd\python\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "C:\sd\python\lib\urllib\request.py", line 519, in open response = self._open(req, data) File "C:\sd\python\lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "C:\sd\python\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\sd\python\lib\urllib\request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, File "C:\sd\python\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)>
What should have happened?
nothing happened
Commit where the problem happens
latest version
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
Launching Web UI with arguments: --xformers --autolaunch
Additional information, context and logs
No response
if i manualy download last.ckpt and put it at folder for ldsr - main program can download this file and start do it. Problem with ldsr directory?
search. its been like this forever. you have to manually DL and rename the model and script file
search. its been like this forever. you have to manually DL and rename the model and script file
Did that. Still the same error.
This seems to be the same issue that’s being discussed here: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/3375
TLDR: Once you have downloaded the .ckpt and .yaml files rename them to “model.ckpt”and “project.yaml” and put them in the LDSR folder.