Skip to content

Commit cb050e1

Browse files
author
Victor Yurchenko
committed
adds plague doctor mask in seminar04
1 parent 23f2269 commit cb050e1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

seminar04-finetuning/seminar_pytorch.ipynb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,36 @@
186186
"predict(img)"
187187
]
188188
},
189+
{
190+
"cell_type": "markdown",
191+
"metadata": {},
192+
"source": [
193+
"Let's introduce a bit of march'20 reality into our seminar!"
194+
]
195+
},
196+
{
197+
"cell_type": "code",
198+
"execution_count": null,
199+
"metadata": {},
200+
"outputs": [],
201+
"source": [
202+
"!mkdir sample_images\n",
203+
"!wget https://raw.githubusercontent.com/yandexdataschool/Practical_DL/spring20/seminar04-finetuning/sample_images/plague-doctor-mask.jpg -O sample_images/mask.jpg"
204+
]
205+
},
206+
{
207+
"cell_type": "code",
208+
"execution_count": null,
209+
"metadata": {},
210+
"outputs": [],
211+
"source": [
212+
"img = resize(plt.imread('sample_images/mask.jpg'), (299, 299))\n",
213+
"plt.imshow(img)\n",
214+
"plt.show()\n",
215+
"\n",
216+
"predict(img)"
217+
]
218+
},
189219
{
190220
"cell_type": "markdown",
191221
"metadata": {},

0 commit comments

Comments
 (0)