Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Apr 9, 2021
1 parent 5450b17 commit 87d1e21
Show file tree
Hide file tree
Showing 5 changed files with 2,470 additions and 118 deletions.
7 changes: 0 additions & 7 deletions stanford_dog/07- multi_crop_model_object_and_parts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,6 @@
"### Modifications on ViT"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 16,
Expand Down
189 changes: 161 additions & 28 deletions stanford_dog/train_aircraft.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -355,7 +355,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -523,7 +523,7 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -532,7 +532,7 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -551,7 +551,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 24,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -562,7 +562,7 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 25,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -589,10 +589,10 @@
"text/html": [
"\n",
" Tracking run with wandb version 0.10.23<br/>\n",
" Syncing run <strong style=\"color:#cdcd00\">floral-dew-56</strong> to <a href=\"https://wandb.ai\" target=\"_blank\">Weights & Biases</a> <a href=\"https://docs.wandb.com/integrations/jupyter.html\" target=\"_blank\">(Documentation)</a>.<br/>\n",
" Syncing run <strong style=\"color:#cdcd00\">playful-pine-57</strong> to <a href=\"https://wandb.ai\" target=\"_blank\">Weights & Biases</a> <a href=\"https://docs.wandb.com/integrations/jupyter.html\" target=\"_blank\">(Documentation)</a>.<br/>\n",
" Project page: <a href=\"https://wandb.ai/keremturgutlu/fgvc-2021\" target=\"_blank\">https://wandb.ai/keremturgutlu/fgvc-2021</a><br/>\n",
" Run page: <a href=\"https://wandb.ai/keremturgutlu/fgvc-2021/runs/1zgrslxy\" target=\"_blank\">https://wandb.ai/keremturgutlu/fgvc-2021/runs/1zgrslxy</a><br/>\n",
" Run data is saved locally in <code>/home/code-base/fgvc/stanford_dog/wandb/run-20210407_063251-1zgrslxy</code><br/><br/>\n",
" Run page: <a href=\"https://wandb.ai/keremturgutlu/fgvc-2021/runs/3mb87h7u\" target=\"_blank\">https://wandb.ai/keremturgutlu/fgvc-2021/runs/3mb87h7u</a><br/>\n",
" Run data is saved locally in <code>/home/code-base/fgvc/stanford_dog/wandb/run-20210407_064521-3mb87h7u</code><br/><br/>\n",
" "
],
"text/plain": [
Expand All @@ -618,30 +618,44 @@
" <tbody>\n",
" <tr>\n",
" <td>0</td>\n",
" <td>3.577183</td>\n",
" <td>3.480371</td>\n",
" <td>0.165317</td>\n",
" <td>02:36</td>\n",
" <td>3.637590</td>\n",
" <td>3.557274</td>\n",
" <td>0.169517</td>\n",
" <td>02:35</td>\n",
" </tr>\n",
" <tr>\n",
" <td>1</td>\n",
" <td>3.122413</td>\n",
" <td>3.090181</td>\n",
" <td>0.245125</td>\n",
" <td>3.179717</td>\n",
" <td>3.146391</td>\n",
" <td>0.230723</td>\n",
" <td>02:35</td>\n",
" </tr>\n",
" <tr>\n",
" <td>2</td>\n",
" <td>2.556927</td>\n",
" <td>2.571779</td>\n",
" <td>0.414041</td>\n",
" <td>02:36</td>\n",
" <td>2.869263</td>\n",
" <td>2.788370</td>\n",
" <td>0.348335</td>\n",
" <td>02:35</td>\n",
" </tr>\n",
" <tr>\n",
" <td>3</td>\n",
" <td>2.160509</td>\n",
" <td>2.432904</td>\n",
" <td>0.470147</td>\n",
" <td>2.443424</td>\n",
" <td>2.555439</td>\n",
" <td>0.431443</td>\n",
" <td>02:35</td>\n",
" </tr>\n",
" <tr>\n",
" <td>4</td>\n",
" <td>2.039598</td>\n",
" <td>2.369647</td>\n",
" <td>0.504350</td>\n",
" <td>02:35</td>\n",
" </tr>\n",
" <tr>\n",
" <td>5</td>\n",
" <td>1.795099</td>\n",
" <td>2.301403</td>\n",
" <td>0.517552</td>\n",
" <td>02:35</td>\n",
" </tr>\n",
" </tbody>\n",
Expand Down Expand Up @@ -679,8 +693,8 @@
" background: #F44336;\n",
" }\n",
" </style>\n",
" <progress value='0' class='' max='16' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" 0.00% [0/16 00:00<00:00]\n",
" <progress value='16' class='' max='36' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" 44.44% [16/36 1:14:52<1:33:35]\n",
" </div>\n",
" \n",
"<table border=\"1\" class=\"dataframe\">\n",
Expand All @@ -694,6 +708,118 @@
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <td>0</td>\n",
" <td>1.676557</td>\n",
" <td>2.263818</td>\n",
" <td>0.531953</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>1</td>\n",
" <td>1.665952</td>\n",
" <td>2.206906</td>\n",
" <td>0.549355</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>2</td>\n",
" <td>1.645507</td>\n",
" <td>2.155257</td>\n",
" <td>0.570657</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>3</td>\n",
" <td>1.611038</td>\n",
" <td>2.129806</td>\n",
" <td>0.575158</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>4</td>\n",
" <td>1.532869</td>\n",
" <td>2.091775</td>\n",
" <td>0.591659</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>5</td>\n",
" <td>1.446730</td>\n",
" <td>2.031212</td>\n",
" <td>0.614761</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>6</td>\n",
" <td>1.389376</td>\n",
" <td>1.977178</td>\n",
" <td>0.636064</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>7</td>\n",
" <td>1.316698</td>\n",
" <td>1.967219</td>\n",
" <td>0.636364</td>\n",
" <td>04:41</td>\n",
" </tr>\n",
" <tr>\n",
" <td>8</td>\n",
" <td>1.243147</td>\n",
" <td>1.966739</td>\n",
" <td>0.638464</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>9</td>\n",
" <td>1.202027</td>\n",
" <td>1.947852</td>\n",
" <td>0.648965</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>10</td>\n",
" <td>1.142180</td>\n",
" <td>1.861410</td>\n",
" <td>0.681968</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>11</td>\n",
" <td>1.099198</td>\n",
" <td>1.913655</td>\n",
" <td>0.665166</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>12</td>\n",
" <td>1.059157</td>\n",
" <td>1.913051</td>\n",
" <td>0.669967</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>13</td>\n",
" <td>1.030893</td>\n",
" <td>1.881339</td>\n",
" <td>0.669667</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>14</td>\n",
" <td>1.030746</td>\n",
" <td>1.843359</td>\n",
" <td>0.692169</td>\n",
" <td>04:40</td>\n",
" </tr>\n",
" <tr>\n",
" <td>15</td>\n",
" <td>0.996640</td>\n",
" <td>1.994713</td>\n",
" <td>0.649565</td>\n",
" <td>04:41</td>\n",
" </tr>\n",
" </tbody>\n",
"</table><p>\n",
"\n",
Expand All @@ -710,8 +836,8 @@
" background: #F44336;\n",
" }\n",
" </style>\n",
" <progress value='58' class='' max='416' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" 13.94% [58/416 00:33<03:29 2.0535]\n",
" <progress value='346' class='' max='416' style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
" 83.17% [346/416 03:11<00:38 0.9599]\n",
" </div>\n",
" "
],
Expand Down Expand Up @@ -795,7 +921,7 @@
" learn = Learner(dls, mcvit_model, opt_func=ranger, cbs=cbs, metrics=metrics, loss_func=loss_func, splitter=model_splitter)\n",
" learn.to_fp16();\n",
" \n",
" epochs = 4\n",
" epochs = 6\n",
" lr = 3e-3\n",
" \n",
" learn.freeze_to(1)\n",
Expand Down Expand Up @@ -833,6 +959,13 @@
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
Loading

0 comments on commit 87d1e21

Please sign in to comment.