{ "cells": [ { "cell_type": "markdown", "id": "3b0da81a-64e9-4d26-8052-35cdad9f8286", "metadata": {}, "source": [ "# Overview of snapshots" ] }, { "cell_type": "code", "execution_count": 1, "id": "455b6f9f-90f2-4a03-bc50-8719812f4f56", "metadata": {}, "outputs": [], "source": [ "%run ThisPlaceDoesExist.ipynb" ] }, { "cell_type": "code", "execution_count": 3, "id": "2422da85-e6d1-4e07-bf25-05aec3d16a6a", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
idx nr dataset conditional resolution gammaduration iterations last_fid
0 00001paris3 True 256 8.23 days, 10:34:26 2600 502.277
1 00002paris3 True 256 2 5 days, 3:43:08 6560 190.346
2 00003paris3 True 256 2 18 days, 13:01:50 25000 42.9661
3 00004paris3 False 256 2 15 days, 16:13:20 22800 15.6691
4 00009paris3-1024.zip False 1024 32 0:00:00 0 549.99
5 00010paris3-1024.zip False 1024 32 50 days, 3:15:24 15200 33.2466
6 00011paris3-1024.zip False 1024 10 5 days, 18:48:04 1760 200.356
7 00014paris3-cropped-256 False 256 8 2 days, 20:08:22 4160 20.1699
8 00016paris3-cropped-256 False 256 8 12 days, 16:48:33 18560 18.1838
9 00022VLoD-cropped2048-scaled1024False 1024 32 0:00:00 0 539.38
10 00023VLoD-cropped2048-scaled1024False 1024 32 1 day, 13:17:19 480 201.189
11 00024VLoD-cropped2048-scaled1024False 1024 32 13 days, 1:04:11 4000 65.2584
12 00025VLoD-cropped2048-scaled1024False 1024 16 19 days, 8:47:32 5920 391.724
" ], "text/plain": [ "'\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n
idx nr dataset conditional resolution gammaduration iterations last_fid
0 00001paris3 True 256 8.23 days, 10:34:26 2600 502.277
1 00002paris3 True 256 2 5 days, 3:43:08 6560 190.346
2 00003paris3 True 256 2 18 days, 13:01:50 25000 42.9661
3 00004paris3 False 256 2 15 days, 16:13:20 22800 15.6691
4 00009paris3-1024.zip False 1024 32 0:00:00 0 549.99
5 00010paris3-1024.zip False 1024 32 50 days, 3:15:24 15200 33.2466
6 00011paris3-1024.zip False 1024 10 5 days, 18:48:04 1760 200.356
7 00014paris3-cropped-256 False 256 8 2 days, 20:08:22 4160 20.1699
8 00016paris3-cropped-256 False 256 8 12 days, 16:48:33 18560 18.1838
9 00022VLoD-cropped2048-scaled1024False 1024 32 0:00:00 0 539.38
10 00023VLoD-cropped2048-scaled1024False 1024 32 1 day, 13:17:19 480 201.189
11 00024VLoD-cropped2048-scaled1024False 1024 32 13 days, 1:04:11 4000 65.2584
12 00025VLoD-cropped2048-scaled1024False 1024 16 19 days, 8:47:32 5920 391.724
'" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import tabulate\n", "tabulate.tabulate([{\"idx\": i, **run.get_summary()} for i, run in enumerate(runs)], tablefmt='html', headers=\"keys\", colalign=(\"left\",\"left\"))\n" ] }, { "cell_type": "code", "execution_count": null, "id": "41babe7e-8184-4e99-bbe8-020775022702", "metadata": {}, "outputs": [], "source": [ "print(len(runs[-1].snapshots))\n", "display(\n", " runs[8].snapshots[-80].time.isoformat(),\n", " runs[8].snapshots[-80].get_preview_img(7,1),\n", " runs[8].snapshots[-30].time.isoformat(),\n", " runs[8].snapshots[-30].get_preview_img(7,1),\n", " \n", " runs[8].snapshots[-20].time.isoformat(),\n", " runs[8].snapshots[-20].get_preview_img(7,1),\n", " \n", " runs[8].snapshots[-5].time.isoformat(),\n", " runs[8].snapshots[-5].get_preview_img(7,1),\n", " \n", " runs[8].snapshots[-2].time.isoformat(),\n", " runs[8].snapshots[-2].get_preview_img(7,1),\n", " \n", " runs[8].snapshots[-1].time.isoformat(),\n", " runs[8].snapshots[-1].get_preview_img(7,3)\n", ")" ] }, { "cell_type": "code", "execution_count": null, "id": "0700dd61-6c44-4724-9dde-ef32c3b7955e", "metadata": {}, "outputs": [], "source": [ "runs[-1].snapshots[-5].get_preview_img(7,2)" ] } ], "metadata": { "kernelspec": { "display_name": "paris-stylegan3", "language": "python", "name": "paris-stylegan3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.10" } }, "nbformat": 4, "nbformat_minor": 5 }