ResShift 1-Click Windows, RunPod, Massed Compute, Kaggle Installers with Amazing Gradio APP and Batch Image Processing
Added 2024-08-18 21:57:40 +0000 UTCPatreon exclusive posts index to find our scripts easily, Patreon scripts updates history to see which updates arrived to which scripts and amazing Patreon special generative scripts list that you can use in any of your task.
Join discord to get help, chat, discuss and also tell me your discord username to get your special rank : SECourses Discord
Please also Star, Watch and Fork our Stable Diffusion & Generative AI GitHub repository and join our Reddit subreddit and follow me on LinkedIn (my real profile)
ResShift: Efficient Diffusion Model for Image Super-resolution by Residual Shifting (NeurIPS 2023, Spotlight)
Official Repo : https://github.com/zsyOAOA/ResShift
I have developed a very advanced Gradio APP.
Scripts : ResShift_v1.zip
Features
It supports following tasks:
Real-world image super-resolution
Bicubic (resize by Matlab) image super-resolution
Blind Face Restoration
Automatically saving all generated image with same name + numbering if necessary
Randomize seed feature for each generation
Batch image processing - give input and output folder paths and it batch process all images and saves
1-Click to install on Windows, RunPod, Massed Compute and Kaggle (free account)
Windows Requirements
Python 3.10, FFmpeg, Cuda 11.8, C++ tools and Git
If it doesn't work make sure to below tutorial and install everything exactly as shown in this below tutorial
How to Install on Windows
Make sure that you have the above requirements
Extract files into a folder like c:/reshift_v1
Double click Windows_Install.bat and it will automatically install everything for you with an isolated virtual environment folder (VENV)
After that double click Windows_Start_app.bat and start the app
When you first time use a task it will download necessary models (all under 500 MB) into accurate folders
If during download it fails, file gets corrupted sadly it doesn't verify that so delete files inside weights and restart
How to Install on RunPod, Massed Compute, Kaggle
Follow the Massed_Compute_Instructions_READ.txt and Runpod_Instructions_READ.txt
For Kaggle follow the notebook written steps
An example video of how to use my RunPod, Massed Compute scripts and Kaggle notebook can be seen below watch it to learn
Some Screenshots

Comments
computer related error something preventing blocking your ai apps : ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED
Furkan Gözükara
2024-10-09 21:26:16 +0000 UTCOn the bright side, I was able to fix my local Forge UI install by redirecting the python reference in venv folder to the new one.
Michael Macauley
2024-10-09 00:09:11 +0000 UTCWell the VPN did help, for some reason. I've updated everything, too. But when I try to run the process on the first sample image I get this error: Traceback (most recent call last): Traceback (most recent call last): File "C:\Python310\lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\Python310\lib\http\client.py", line 1283, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Python310\lib\http\client.py", line 1329, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Python310\lib\http\client.py", line 1278, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Python310\lib\http\client.py", line 1038, in _send_output self.send(msg) File "C:\Python310\lib\http\client.py", line 976, in send self.connect() File "C:\Python310\lib\http\client.py", line 1455, in connect self.sock = self._context.wrap_socket(self.sock, File "C:\Python310\lib\ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "C:\Python310\lib\ssl.py", line 1071, in _create self.do_handshake() File "C:\Python310\lib\ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\ResShift_v1\ResShift\venv\lib\site-packages\gradio\queueing.py", line 536, in process_events response = await route_utils.call_process_api( File "C:\ResShift_v1\ResShift\venv\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api output = await app.get_blocks().process_api( File "C:\ResShift_v1\ResShift\venv\lib\site-packages\gradio\blocks.py", line 1935, in process_api result = await self.call_function( File "C:\ResShift_v1\ResShift\venv\lib\site-packages\gradio\blocks.py", line 1520, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore File "C:\ResShift_v1\ResShift\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\ResShift_v1\ResShift\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2405, in run_sync_in_worker_thread return await future File "C:\ResShift_v1\ResShift\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 914, in run result = context.run(func, *args) File "C:\ResShift_v1\ResShift\venv\lib\site-packages\gradio\utils.py", line 826, in wrapper response = f(*args, **kwargs) File "C:\ResShift_v1\ResShift\app.py", line 146, in predict configs = get_configs(task, version, scale) File "C:\ResShift_v1\ResShift\app.py", line 110, in get_configs load_file_from_url( File "C:\ResShift_v1\ResShift\basicsr\utils\download_util.py", line 97, in load_file_from_url download_url_to_file(url, cached_file, hash_prefix=None, progress=progress) File "C:\ResShift_v1\ResShift\venv\lib\site-packages\torch\hub.py", line 622, in download_url_to_file u = urlopen(req) File "C:\Python310\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "C:\Python310\lib\urllib\request.py", line 525, in open response = meth(req, response) File "C:\Python310\lib\urllib\request.py", line 634, in http_response response = self.parent.error( File "C:\Python310\lib\urllib\request.py", line 557, in error result = self._call_chain(*args) File "C:\Python310\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\Python310\lib\urllib\request.py", line 749, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "C:\Python310\lib\urllib\request.py", line 519, in open response = self._open(req, data) File "C:\Python310\lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "C:\Python310\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\Python310\lib\urllib\request.py", line 1391, in https_open return self.do_open(http.client.HTTPSConnection, req, File "C:\Python310\lib\urllib\request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError:
Michael Macauley
2024-10-08 23:33:08 +0000 UTCit is warp vpn, the vpn of cloudflare check it out
Furkan Gözükara
2024-10-08 21:47:05 +0000 UTCI'm not sure how that's possible since I don't have any antivirus software and my ISP doesn't block anything like that. I also don't feel comfortable trying some no-name VPN or paying you more money after following your advice broke my existing installs. I know my way around a computer for the most part. What will I do if, after spending a bunch more money, I still have no fix and my existing installs are still broken?
Michael Macauley
2024-10-08 21:46:27 +0000 UTCwell it is antivirus or ISP related. can you try warn VPN? also if you upgrade gold member i can connect your pc and try to solve
Furkan Gözükara
2024-10-08 21:31:08 +0000 UTCHi, I was finally able to make time to get through the whole video. Now when I try to install the ResShift UI, it just stops entirely at "Collecting torch==2.3.0" and does nothing. I walked away for more than an hour and came back. Nothing happened. Additionally, now my local ForgeUI install is broken because it is looking for python in the Program Files where you had me uninstall it. I'm not sure what to do. Now I can't use anything.
Michael Macauley
2024-10-08 21:28:51 +0000 UTCok great let me know. please uninstall existing things like python c++ tools ffmpeg and reinstall as shown in video into C drive so it works best
Furkan Gözükara
2024-10-02 00:19:38 +0000 UTCI don't have antivirus so I'll give this a shot and get back when I finish.
Michael Macauley
2024-10-02 00:17:04 +0000 UTCtotally related to your computer. it appears blocking your gradio could be your antivirus blocking it also i dont suggest at all installing python into app data uninstall all python and reinstall everything as shown here : https://youtu.be/DrhUHnYfwC0 :ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
Furkan Gözükara
2024-10-01 23:18:57 +0000 UTCTraceback (most recent call last): File "C:\Users\micha\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\micha\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1283, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1329, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1278, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1038, in _send_output self.send(msg) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 976, in send self.connect() File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 1455, in connect self.sock = self._context.wrap_socket(self.sock, File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1071, in _create self.do_handshake() File "C:\Users\micha\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: unable to get local issuer certificate (_ssl.c:1007) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\micha\ResShift\venv\lib\site-packages\gradio\queueing.py", line 536, in process_events response = await route_utils.call_process_api( File "C:\Users\micha\ResShift\venv\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api output = await app.get_blocks().process_api( File "C:\Users\micha\ResShift\venv\lib\site-packages\gradio\blocks.py", line 1935, in process_api result = await self.call_function( File "C:\Users\micha\ResShift\venv\lib\site-packages\gradio\blocks.py", line 1520, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore File "C:\Users\micha\ResShift\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "C:\Users\micha\ResShift\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2405, in run_sync_in_worker_thread return await future File "C:\Users\micha\ResShift\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 914, in run result = context.run(func, *args) File "C:\Users\micha\ResShift\venv\lib\site-packages\gradio\utils.py", line 826, in wrapper response = f(*args, **kwargs) File "C:\Users\micha\ResShift\app.py", line 146, in predict configs = get_configs(task, version, scale) File "C:\Users\micha\ResShift\app.py", line 110, in get_configs load_file_from_url( File "C:\Users\micha\ResShift\basicsr\utils\download_util.py", line 97, in load_file_from_url download_url_to_file(url, cached_file, hash_prefix=None, progress=progress) File "C:\Users\micha\ResShift\venv\lib\site-packages\torch\hub.py", line 622, in download_url_to_file u = urlopen(req) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 525, in open response = meth(req, response) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 634, in http_response response = self.parent.error( File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 557, in error result = self._call_chain(*args) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 749, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "C:\Users\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 519, in open response = self._open(req, data) File "C:\Users\micha\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\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\Users\micha\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\micha\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError:
Michael Macauley
2024-10-01 22:13:15 +0000 UTCYes. This is what I get in the command prompt window.
Michael Macauley
2024-10-01 22:13:02 +0000 UTCcan you tell me error message? also on windows or runpod or massed compute?
Furkan Gözükara
2024-10-01 21:44:28 +0000 UTCI used the 1 click installer. It says I have all the requirements and that it installed. But when I try to run the super resolution on one of the test images I get an error. What should I do?
Michael Macauley
2024-10-01 21:36:14 +0000 UTCalmaz bu hızlı ama daha zayıf :)
Furkan Gözükara
2024-08-19 12:06:52 +0000 UTChocam bu supir in yerini alırmı :D
Cemil Hacimahmutoglu
2024-08-19 06:45:32 +0000 UTCyou are welcome. also try GigaGan too : https://www.patreon.com/posts/110060645
Furkan Gözükara
2024-08-19 01:34:47 +0000 UTCThis looks promising! Thank you for putting this out here. I know SUPIR is reported to be the best upscaler (like) solution. However, I cannot get it it to manage the image process correctly as every attempt results in images that are worse off than I started. I know there's something I'm doing wrong, though I haven't been able to determine the right recipe. ResShift looks far more simplistic, I hope it works good enough for the purpose.
Pew
2024-08-19 01:33:34 +0000 UTC