mirror of
https://github.com/zebrajr/faceswap.git
synced 2025-12-06 12:20:27 +01:00
typofix
This commit is contained in:
parent
9e94273f89
commit
ad408f07fb
|
|
@ -365,10 +365,11 @@ class _Cache():
|
|||
|
||||
retval = {}
|
||||
for idx, data in raw.items():
|
||||
val = np.frombuffer(zlib.decompress(data[metric]), dtype=dtype)
|
||||
buff = np.frombuffer(zlib.decompress(data[metric]), dtype=dtype)
|
||||
shape = data[f"{metric}_shape"]
|
||||
if len(shape) > 1:
|
||||
val = val.reshape(-1, *shape[1:])
|
||||
buff = buff.reshape(-1, *shape[1:])
|
||||
val = {metric: buff}
|
||||
if metric == "loss":
|
||||
val["labels"] = data["labels"]
|
||||
retval[idx] = val
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user