mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-05-15 16:29:00 +08:00
fix CodeFormer weight
This commit is contained in:
parent
f1a6c5fe17
commit
ea83180761
@ -50,7 +50,7 @@ class FaceRestorerCodeFormer(face_restoration_utils.CommonFaceRestoration):
|
|||||||
|
|
||||||
def restore_face(cropped_face_t):
|
def restore_face(cropped_face_t):
|
||||||
assert self.net is not None
|
assert self.net is not None
|
||||||
return self.net(cropped_face_t, w=w, adain=True)[0]
|
return self.net(cropped_face_t, weight=w, adain=True)[0]
|
||||||
|
|
||||||
return self.restore_with_helper(np_image, restore_face)
|
return self.restore_with_helper(np_image, restore_face)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user