3.8 MiB
3.8 MiB
Overview of snapshots¶
In [ ]:
In [1]:
import tabulate
In [2]:
%run ThisPlaceDoesExist.ipynb
In [3]:
tabulate.tabulate([{"idx": i, **run.get_summary()} for i, run in enumerate(runs)], tablefmt='html', headers="keys", colalign=("left","left"))
Out[3]:
In [4]:
display(
runs[-1].snapshots[-20].time.isoformat(),
runs[-1].snapshots[-20].get_preview_img(7,1),
runs[-1].snapshots[-5].time.isoformat(),
runs[-1].snapshots[-5].get_preview_img(7,1),
runs[-1].snapshots[-2].time.isoformat(),
runs[-1].snapshots[-2].get_preview_img(7,1),
runs[-1].snapshots[-1].time.isoformat(),
runs[-1].snapshots[-1].get_preview_img(7,1)
)
In [32]:
# vertical_size = 256
# nth_snapshot = 5 # only show one very x snapshots (1 to show all)
# exclude_runs = [0,1]
# for i, run in enumerate(runs):
# if i in exclude_runs:
# continue
# display(md(f"## {run.id}"))
# for j, snapshot in enumerate(run.snapshots):
# if j % nth_snapshot != 0:
# continue
# # if
# img = snapshot.get_preview_img(5,1)
# img = img.resize((int(img.size[0] / (img.size[1]/vertical_size)), vertical_size))
# print(f"{j}: {snapshot.iteration_str}")
# display(img)