s0md3v / sd-webui-roop

roop extension for StableDiffusion web-ui
GNU Affero General Public License v3.0
3.4k stars 881 forks source link

Error running postprocess_image: D:\ST-AI\Packages\Stable Diffusion WebUI\extensions\sd-webui-roop\scripts\faceswap.py Traceback (most recent call last): #295

Open Alabbas11 opened 9 months ago

Alabbas11 commented 9 months ago

I tried to solve the problem for two days to no avail. Please help

" Error running postprocess_image: D:\ST-AI\Packages\Stable Diffusion WebUI\extensions\sd-webui-roop\scripts\faceswap.py Traceback (most recent call last): File "D:\ST-AI\Packages\Stable Diffusion WebUI\modules\scripts.py", line 774, in postprocess_image script.postprocess_image(p, pp, *script_args) File "D:\ST-AI\Packages\Stable Diffusion WebUI\extensions\sd-webui-roop\scripts\faceswap.py", line 184, in postprocess_image result: ImageResult = swap_face( File "D:\ST-AI\Packages\Stable Diffusion WebUI\extensions\sd-webui-roop\scripts\swapper.py", line 138, in swap_face result_image = upscale_image(result_image, upscale_options) File "D:\ST-AI\Packages\Stable Diffusion WebUI\extensions\sd-webui-roop\scripts\swapper.py", line 66, in upscale_image numpy_image = upscale_options.face_restorer.restore(numpy_image) File "D:\ST-AI\Packages\Stable Diffusion WebUI\modules\gfpgan_model.py", line 121, in restore return gfpgan_fix_faces(np_image) File "D:\ST-AI\Packages\Stable Diffusion WebUI\modules\gfpgan_model.py", line 60, in gfpgan_fix_faces model = gfpgann() File "D:\ST-AI\Packages\Stable Diffusion WebUI\modules\gfpgan_model.py", line 47, in gfpgann model = gfpgan_constructor(model_path=model_file, upscale=1, arch='clean', channel_multiplier=2, bg_upsampler=None, device=devices.device_gfpgan) File "D:\ST-AI\Packages\Stable Diffusion WebUI\venv\lib\site-packages\gfpgan\utils.py", line 90, in init model_path = load_file_from_url( File "D:\ST-AI\Packages\Stable Diffusion WebUI\modules\gfpgan_model.py", line 101, in my_load_file_from_url return load_file_from_url_orig(**dict(kwargs, model_dir=model_file_path)) File "D:\ST-AI\Packages\Stable Diffusion WebUI\venv\lib\site-packages\basicsr\utils\download_util.py", line 89, in load_file_from_url os.makedirs(model_dir, exist_ok=True) File "os.py", line 215, in makedirs File "os.py", line 215, in makedirs File "os.py", line 215, in makedirs [Previous line repeated 4 more times] File "os.py", line 225, in makedirs OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'https:'"

Screenshot 2024-01-29 054605