Commit 1fbfc052 authored by DepFA's avatar DepFA Committed by AUTOMATIC1111

Update hypernetwork.py

parent 48dbf99e
......@@ -288,10 +288,13 @@ def statistics(data):
def report_statistics(loss_info:dict):
keys = sorted(loss_info.keys(), key=lambda x: sum(loss_info[x]) / len(loss_info[x]))
for key in keys:
info, recent = statistics(loss_info[key])
print("Loss statistics for file " + key)
print(info)
print(recent)
try:
print("Loss statistics for file " + key)
info, recent = statistics(loss_info[key])
print(info)
print(recent)
except Exception as e:
print(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment