fix hash field
This commit is contained in:
parent
fe6b267483
commit
48671e27b0
|
@ -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),
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue