1
0
Fork 0

fix hash field

This commit is contained in:
Sean Sube 2024-01-03 23:46:50 -06:00
parent fe6b267483
commit 48671e27b0
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 4 additions and 4 deletions

View File

@ -127,13 +127,13 @@ class ImageMetadata:
} }
# fix up some fields # fix up some fields
model = path.basename(self.params.model) model_name, model_hash = self.get_model_hash(self.params.model)
json["params"]["model"] = model json["params"]["model"] = model_name
json["models"].append( json["models"].append(
{ {
"name": model, "hash": model_hash,
"name": model_name,
"weight": 1.0, "weight": 1.0,
"hash": self.get_model_hash(model),
} }
) )