2022-11-25 18:54:23 +00:00
{
"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": [
"<table>\n",
"<thead>\n",
2023-01-12 14:53:19 +00:00
"<tr><th>idx </th><th>nr </th><th>dataset </th><th>conditional </th><th style=\"text-align: right;\"> resolution</th><th style=\"text-align: right;\"> gamma</th><th>duration </th><th style=\"text-align: right;\"> iterations</th><th style=\"text-align: right;\"> last_fid</th></tr>\n",
2022-11-25 18:54:23 +00:00
"</thead>\n",
"<tbody>\n",
2023-01-12 14:53:19 +00:00
"<tr><td>0 </td><td>00001</td><td>paris3 </td><td>True </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 8.2</td><td>3 days, 10:34:26 </td><td style=\"text-align: right;\"> 2600</td><td style=\"text-align: right;\"> 502.277 </td></tr>\n",
"<tr><td>1 </td><td>00002</td><td>paris3 </td><td>True </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 2 </td><td>5 days, 3:43:08 </td><td style=\"text-align: right;\"> 6560</td><td style=\"text-align: right;\"> 190.346 </td></tr>\n",
"<tr><td>2 </td><td>00003</td><td>paris3 </td><td>True </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 2 </td><td>18 days, 13:01:50</td><td style=\"text-align: right;\"> 25000</td><td style=\"text-align: right;\"> 42.9661</td></tr>\n",
"<tr><td>3 </td><td>00004</td><td>paris3 </td><td>False </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 2 </td><td>15 days, 16:13:20</td><td style=\"text-align: right;\"> 22800</td><td style=\"text-align: right;\"> 15.6691</td></tr>\n",
"<tr><td>4 </td><td>00009</td><td>paris3-1024.zip </td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>0:00:00 </td><td style=\"text-align: right;\"> 0</td><td style=\"text-align: right;\"> 549.99 </td></tr>\n",
"<tr><td>5 </td><td>00010</td><td>paris3-1024.zip </td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>50 days, 3:15:24 </td><td style=\"text-align: right;\"> 15200</td><td style=\"text-align: right;\"> 33.2466</td></tr>\n",
"<tr><td>6 </td><td>00011</td><td>paris3-1024.zip </td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 10 </td><td>5 days, 18:48:04 </td><td style=\"text-align: right;\"> 1760</td><td style=\"text-align: right;\"> 200.356 </td></tr>\n",
"<tr><td>7 </td><td>00014</td><td>paris3-cropped-256 </td><td>False </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 8 </td><td>2 days, 20:08:22 </td><td style=\"text-align: right;\"> 4160</td><td style=\"text-align: right;\"> 20.1699</td></tr>\n",
"<tr><td>8 </td><td>00016</td><td>paris3-cropped-256 </td><td>False </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 8 </td><td>12 days, 16:48:33</td><td style=\"text-align: right;\"> 18560</td><td style=\"text-align: right;\"> 18.1838</td></tr>\n",
"<tr><td>9 </td><td>00022</td><td>VLoD-cropped2048-scaled1024</td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>0:00:00 </td><td style=\"text-align: right;\"> 0</td><td style=\"text-align: right;\"> 539.38 </td></tr>\n",
"<tr><td>10 </td><td>00023</td><td>VLoD-cropped2048-scaled1024</td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>1 day, 13:17:19 </td><td style=\"text-align: right;\"> 480</td><td style=\"text-align: right;\"> 201.189 </td></tr>\n",
"<tr><td>11 </td><td>00024</td><td>VLoD-cropped2048-scaled1024</td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>13 days, 1:04:11 </td><td style=\"text-align: right;\"> 4000</td><td style=\"text-align: right;\"> 65.2584</td></tr>\n",
"<tr><td>12 </td><td>00025</td><td>VLoD-cropped2048-scaled1024</td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 16 </td><td>19 days, 8:47:32 </td><td style=\"text-align: right;\"> 5920</td><td style=\"text-align: right;\"> 391.724 </td></tr>\n",
2022-11-25 18:54:23 +00:00
"</tbody>\n",
"</table>"
],
"text/plain": [
2023-01-12 14:53:19 +00:00
"'<table>\\n<thead>\\n<tr><th>idx </th><th>nr </th><th>dataset </th><th>conditional </th><th style=\"text-align: right;\"> resolution</th><th style=\"text-align: right;\"> gamma</th><th>duration </th><th style=\"text-align: right;\"> iterations</th><th style=\"text-align: right;\"> last_fid</th></tr>\\n</thead>\\n<tbody>\\n<tr><td>0 </td><td>00001</td><td>paris3 </td><td>True </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 8.2</td><td>3 days, 10:34:26 </td><td style=\"text-align: right;\"> 2600</td><td style=\"text-align: right;\"> 502.277 </td></tr>\\n<tr><td>1 </td><td>00002</td><td>paris3 </td><td>True </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 2 </td><td>5 days, 3:43:08 </td><td style=\"text-align: right;\"> 6560</td><td style=\"text-align: right;\"> 190.346 </td></tr>\\n<tr><td>2 </td><td>00003</td><td>paris3 </td><td>True </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 2 </td><td>18 days, 13:01:50</td><td style=\"text-align: right;\"> 25000</td><td style=\"text-align: right;\"> 42.9661</td></tr>\\n<tr><td>3 </td><td>00004</td><td>paris3 </td><td>False </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 2 </td><td>15 days, 16:13:20</td><td style=\"text-align: right;\"> 22800</td><td style=\"text-align: right;\"> 15.6691</td></tr>\\n<tr><td>4 </td><td>00009</td><td>paris3-1024.zip </td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>0:00:00 </td><td style=\"text-align: right;\"> 0</td><td style=\"text-align: right;\"> 549.99 </td></tr>\\n<tr><td>5 </td><td>00010</td><td>paris3-1024.zip </td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>50 days, 3:15:24 </td><td style=\"text-align: right;\"> 15200</td><td style=\"text-align: right;\"> 33.2466</td></tr>\\n<tr><td>6 </td><td>00011</td><td>paris3-1024.zip </td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 10 </td><td>5 days, 18:48:04 </td><td style=\"text-align: right;\"> 1760</td><td style=\"text-align: right;\"> 200.356 </td></tr>\\n<tr><td>7 </td><td>00014</td><td>paris3-cropped-256 </td><td>False </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 8 </td><td>2 days, 20:08:22 </td><td style=\"text-align: right;\"> 4160</td><td style=\"text-align: right;\"> 20.1699</td></tr>\\n<tr><td>8 </td><td>00016</td><td>paris3-cropped-256 </td><td>False </td><td style=\"text-align: right;\"> 256</td><td style=\"text-align: right;\"> 8 </td><td>12 days, 16:48:33</td><td style=\"text-align: right;\"> 18560</td><td style=\"text-align: right;\"> 18.1838</td></tr>\\n<tr><td>9 </td><td>00022</td><td>VLoD-cropped2048-scaled1024</td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>0:00:00 </td><td style=\"text-align: right;\"> 0</td><td style=\"text-align: right;\"> 539.38 </td></tr>\\n<tr><td>10 </td><td>00023</td><td>VLoD-cropped2048-scaled1024</td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>1 day, 13:17:19 </td><td style=\"text-align: right;\"> 480</td><td style=\"text-align: right;\"> 201.189 </td></tr>\\n<tr><td>11 </td><td>00024</td><td>VLoD-cropped2048-scaled1024</td><td>False </td><td style=\"text-align: right;\"> 1024</td><td style=\"text-align: right;\"> 32 </td><td>13 days, 1:04:11 </td><td style=\"text-align: right;
2022-11-25 18:54:23 +00:00
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2023-01-12 14:53:19 +00:00
"import tabulate\n",
"tabulate.tabulate([{\"idx\": i, **run.get_summary()} for i, run in enumerate(runs)], tablefmt='html', headers=\"keys\", colalign=(\"left\",\"left\"))\n"
2022-11-25 18:54:23 +00:00
]
},
{
"cell_type": "code",
2023-01-12 14:53:19 +00:00
"execution_count": null,
2022-11-25 18:54:23 +00:00
"id": "41babe7e-8184-4e99-bbe8-020775022702",
"metadata": {},
2023-01-12 14:53:19 +00:00
"outputs": [],
2022-11-25 18:54:23 +00:00
"source": [
2023-01-12 14:53:19 +00:00
"print(len(runs[-1].snapshots))\n",
2022-11-25 18:54:23 +00:00
"display(\n",
2023-01-12 14:53:19 +00:00
" 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",
2022-11-25 18:54:23 +00:00
" \n",
2023-01-12 14:53:19 +00:00
" runs[8].snapshots[-20].time.isoformat(),\n",
" runs[8].snapshots[-20].get_preview_img(7,1),\n",
2022-11-25 18:54:23 +00:00
" \n",
2023-01-12 14:53:19 +00:00
" runs[8].snapshots[-5].time.isoformat(),\n",
" runs[8].snapshots[-5].get_preview_img(7,1),\n",
2022-11-25 18:54:23 +00:00
" \n",
2023-01-12 14:53:19 +00:00
" 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",
2022-11-25 18:54:23 +00:00
")"
]
},
{
"cell_type": "code",
2023-01-12 14:53:19 +00:00
"execution_count": null,
"id": "0700dd61-6c44-4724-9dde-ef32c3b7955e",
2022-11-25 18:54:23 +00:00
"metadata": {},
"outputs": [],
"source": [
2023-01-12 14:53:19 +00:00
"runs[-1].snapshots[-5].get_preview_img(7,2)"
2022-11-25 18:54:23 +00:00
]
}
],
"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
}