Fix error message in model_patcher.py

Found while tinkering.
This commit is contained in:
Simon Lui 2023-08-30 00:25:04 -07:00 committed by GitHub
parent fe4c07400c
commit 18617967e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ class ModelPatcher:
model_sd = self.model_state_dict()
for key in self.patches:
if key not in model_sd:
print("could not patch. key doesn't exist in model:", k)
print("could not patch. key doesn't exist in model:", key)
continue
weight = model_sd[key]