{
"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",
"idx | nr | dataset | conditional | resolution | gamma | duration | iterations | last_fid |
\n",
"\n",
"\n",
"0 | 00001 | paris3 | True | 256 | 8.2 | 3 days, 10:34:26 | 2600 | 502.277 |
\n",
"1 | 00002 | paris3 | True | 256 | 2 | 5 days, 3:43:08 | 6560 | 190.346 |
\n",
"2 | 00003 | paris3 | True | 256 | 2 | 18 days, 13:01:50 | 25000 | 42.9661 |
\n",
"3 | 00004 | paris3 | False | 256 | 2 | 15 days, 16:13:20 | 22800 | 15.6691 |
\n",
"4 | 00009 | paris3-1024.zip | False | 1024 | 32 | 0:00:00 | 0 | 549.99 |
\n",
"5 | 00010 | paris3-1024.zip | False | 1024 | 32 | 50 days, 3:15:24 | 15200 | 33.2466 |
\n",
"6 | 00011 | paris3-1024.zip | False | 1024 | 10 | 5 days, 18:48:04 | 1760 | 200.356 |
\n",
"7 | 00014 | paris3-cropped-256 | False | 256 | 8 | 2 days, 20:08:22 | 4160 | 20.1699 |
\n",
"8 | 00016 | paris3-cropped-256 | False | 256 | 8 | 12 days, 16:48:33 | 18560 | 18.1838 |
\n",
"9 | 00022 | VLoD-cropped2048-scaled1024 | False | 1024 | 32 | 0:00:00 | 0 | 539.38 |
\n",
"10 | 00023 | VLoD-cropped2048-scaled1024 | False | 1024 | 32 | 1 day, 13:17:19 | 480 | 201.189 |
\n",
"11 | 00024 | VLoD-cropped2048-scaled1024 | False | 1024 | 32 | 13 days, 1:04:11 | 4000 | 65.2584 |
\n",
"12 | 00025 | VLoD-cropped2048-scaled1024 | False | 1024 | 16 | 19 days, 8:47:32 | 5920 | 391.724 |
\n",
"\n",
"
"
],
"text/plain": [
"'\\n\\nidx | nr | dataset | conditional | resolution | gamma | duration | iterations | last_fid |
\\n\\n\\n0 | 00001 | paris3 | True | 256 | 8.2 | 3 days, 10:34:26 | 2600 | 502.277 |
\\n1 | 00002 | paris3 | True | 256 | 2 | 5 days, 3:43:08 | 6560 | 190.346 |
\\n2 | 00003 | paris3 | True | 256 | 2 | 18 days, 13:01:50 | 25000 | 42.9661 |
\\n3 | 00004 | paris3 | False | 256 | 2 | 15 days, 16:13:20 | 22800 | 15.6691 |
\\n4 | 00009 | paris3-1024.zip | False | 1024 | 32 | 0:00:00 | 0 | 549.99 |
\\n5 | 00010 | paris3-1024.zip | False | 1024 | 32 | 50 days, 3:15:24 | 15200 | 33.2466 |
\\n6 | 00011 | paris3-1024.zip | False | 1024 | 10 | 5 days, 18:48:04 | 1760 | 200.356 |
\\n7 | 00014 | paris3-cropped-256 | False | 256 | 8 | 2 days, 20:08:22 | 4160 | 20.1699 |
\\n8 | 00016 | paris3-cropped-256 | False | 256 | 8 | 12 days, 16:48:33 | 18560 | 18.1838 |
\\n9 | 00022 | VLoD-cropped2048-scaled1024 | False | 1024 | 32 | 0:00:00 | 0 | 539.38 |
\\n10 | 00023 | VLoD-cropped2048-scaled1024 | False | 1024 | 32 | 1 day, 13:17:19 | 480 | 201.189 |
\\n11 | 00024 | VLoD-cropped2048-scaled1024 | False | 1024 | 32 | 13 days, 1:04:11 | 4000 | 65.2584 |
\\n12 | 00025 | VLoD-cropped2048-scaled1024 | False | 1024 | 16 | 19 days, 8:47:32 | 5920 | 391.724 |
\\n\\n
'"
]
},
"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
}