You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is caused by an extension, but I believe it is caused by a bug in the webui
The issue exists in the current version of the webui
The issue has not been reported before recently
The issue has been reported before but has not been fixed yet
What happened?
I think the ZLUDA upgrades broke Codeformer, if you try to use it it fails with NVRTC_ERROR_INVALID_PROGRAM. It did work just fine until the zluda upgrades at the end of last year/start of this year got released. I tried a clean install with the current version, did not work. Tried newest ZLUDA Version (https://github.com/lshqqytiger/ZLUDA/releases/), did not work. It worked under HIP SDK 6.1 in the past, I tried HIP SDK 6.1 and 6.2 and does not work under both versions.
Steps to reproduce the problem
Go to extras tab in the webui and try to use CodeFormer (only CodeFormer checkmarked)
*** Failed face-restoration inference
Traceback (most recent call last):
File "D:\Programme\a1111\stable-diffusion-webui-directml\modules\face_restoration_utils.py", line 86, in restore_with_face_helper
cropped_face_t = restore_face(cropped_face_t)
File "D:\Programme\a1111\stable-diffusion-webui-directml\modules\codeformer_model.py", line 53, in restore_face
return self.net(cropped_face_t, weight=w, adain=True)[0]
File "D:\Programme\a1111\stable-diffusion-webui-directml\venv\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\Programme\a1111\stable-diffusion-webui-directml\venv\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Programme\a1111\stable-diffusion-webui-directml\venv\lib\site-packages\spandrel_extra_arches\architectures\CodeFormer\arch\codeformer.py", line 702, in forward
x = block(x)
File "D:\Programme\a1111\stable-diffusion-webui-directml\venv\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "D:\Programme\a1111\stable-diffusion-webui-directml\venv\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Programme\a1111\stable-diffusion-webui-directml\venv\lib\site-packages\spandrel_extra_arches\architectures\CodeFormer\arch\codeformer.py", line 570, in forward
x = swish(x)
RuntimeError: CUDA NVRTC error: NVRTC_ERROR_INVALID_PROGRAM
Additional information
No response
The text was updated successfully, but these errors were encountered:
I had the same problem, adding
--use-cpu codeformer
to your commandline_args should get things humming again. It's a workaround, not a fix, but it's not stupid when it works :)
Checklist
What happened?
I think the ZLUDA upgrades broke Codeformer, if you try to use it it fails with NVRTC_ERROR_INVALID_PROGRAM. It did work just fine until the zluda upgrades at the end of last year/start of this year got released. I tried a clean install with the current version, did not work. Tried newest ZLUDA Version (https://github.com/lshqqytiger/ZLUDA/releases/), did not work. It worked under HIP SDK 6.1 in the past, I tried HIP SDK 6.1 and 6.2 and does not work under both versions.
Steps to reproduce the problem
What should have happened?
CodeFormer should work.
What browsers do you use to access the UI ?
Mozilla Firefox
Sysinfo
sysinfo-2025-02-18-12-43.json
Console logs
Additional information
No response
The text was updated successfully, but these errors were encountered: