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
i only experience this in forge, not in the "classical" a1111.
when i try to use the face restoration (be it, gfpgan or codedeformer), i get error messages in the terminal.
but only if used via extras.
if activated for txt2img or img2img generation, it works as expected.
this is the message i am getting with gfpgan:
*** Failed face-restoration inference
Traceback (most recent call last):
File "E:\ai_gh_repos\webui_forge_cu121_torch21\webui\modules\face_restoration_utils.py", line 87, in restore_with_face_helper
cropped_face_t = restore_face(cropped_face_t)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\webui\modules\gfpgan_model.py", line 51, in restore_face
return self.net(cropped_face_t, return_rgb=False)[0]
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\spandrel\architectures\GFPGAN\arch\gfpganv1_clean_arch.py", line 326, in forward
style_code = self.final_linear(feat.view(feat.size(0), -1))
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: Inference tensors do not track version counter.
this is the message with codeformer:
*** Failed face-restoration inference
Traceback (most recent call last):
File "E:\ai\_gh_repos\webui_forge_cu121_torch21\webui\modules\face_restoration_utils.py", line 87, in restore_with_face_helper
cropped_face_t = restore_face(cropped_face_t)
File "E:\ai\_gh_repos\webui_forge_cu121_torch21\webui\modules\codeformer_model.py", line 53, in restore_face
return self.net(cropped_face_t, w=w, adain=True)[0]
File "E:\ai\_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\ai\_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "E:\ai\_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\spandrel\architectures\CodeFormer\arch\codeformer.py", line 718, in forward
pos_emb = self.position_emb.unsqueeze(1).repeat(1, x.shape[0], 1)
RuntimeError: Inference tensors do not track version counter.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i only experience this in forge, not in the "classical" a1111.
when i try to use the face restoration (be it, gfpgan or codedeformer), i get error messages in the terminal.
but only if used via extras.
if activated for txt2img or img2img generation, it works as expected.
this is the message i am getting with gfpgan:
*** Failed face-restoration inference
Traceback (most recent call last):
File "E:\ai_gh_repos\webui_forge_cu121_torch21\webui\modules\face_restoration_utils.py", line 87, in restore_with_face_helper
cropped_face_t = restore_face(cropped_face_t)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\webui\modules\gfpgan_model.py", line 51, in restore_face
return self.net(cropped_face_t, return_rgb=False)[0]
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\spandrel\architectures\GFPGAN\arch\gfpganv1_clean_arch.py", line 326, in forward
style_code = self.final_linear(feat.view(feat.size(0), -1))
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "E:\ai_gh_repos\webui_forge_cu121_torch21\system\python\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: Inference tensors do not track version counter.
Beta Was this translation helpful? Give feedback.
All reactions