mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-09 18:51:17 -08:00
Update hypernetwork.py
This commit is contained in:
parent
48dbf99e84
commit
1fbfc052eb
1 changed files with 7 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue