Commit 0d2e1dac authored by AngelBottomless's avatar AngelBottomless Committed by AUTOMATIC1111

convert deque -> list

I don't feel this being efficient
parent 348f89c8
...@@ -282,7 +282,7 @@ def report_statistics(loss_info:dict): ...@@ -282,7 +282,7 @@ def report_statistics(loss_info:dict):
for key in keys: for key in keys:
try: try:
print("Loss statistics for file " + key) print("Loss statistics for file " + key)
info, recent = statistics(loss_info[key]) info, recent = statistics(list(loss_info[key]))
print(info) print(info)
print(recent) print(recent)
except Exception as e: except Exception as 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