Skip to content

Commit d2bddf7

Browse files
author
Lincoln Stein
committed
tweak formatting to accommodate longer runtimes
1 parent 921ccad commit d2bddf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

invokeai/app/services/invocation_stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,12 @@ def log_stats(self):
208208

209209
total_time = 0
210210
logger.info(f"Graph stats: {graph_id}")
211-
logger.info("Node Calls Seconds VRAM Used")
211+
logger.info("Node Calls Seconds VRAM Used")
212212
for node_type, stats in self._stats[graph_id].nodes.items():
213-
logger.info(f"{node_type:<20} {stats.calls:>5} {stats.time_used:4.3f}s {stats.max_vram:4.2f}G")
213+
logger.info(f"{node_type:<20} {stats.calls:>5} {stats.time_used:7.3f}s {stats.max_vram:4.2f}G")
214214
total_time += stats.time_used
215215

216-
logger.info(f"TOTAL GRAPH EXECUTION TIME: {total_time:4.3f}s")
216+
logger.info(f"TOTAL GRAPH EXECUTION TIME: {total_time:7.3f}s")
217217
if torch.cuda.is_available():
218218
logger.info("Current VRAM utilization " + "%4.2fG" % (torch.cuda.memory_allocated() / 1e9))
219219

0 commit comments

Comments
 (0)