From cb4d6d6f5be213edbc4f3b1e4452e5b7ce5e9378 Mon Sep 17 00:00:00 2001 From: adamhrv Date: Thu, 17 Jan 2019 11:26:41 +0100 Subject: updates for batch processing --- .../face_analysis/face_recognition_vgg.ipynb | 36 ++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'megapixels/notebooks/face_analysis') diff --git a/megapixels/notebooks/face_analysis/face_recognition_vgg.ipynb b/megapixels/notebooks/face_analysis/face_recognition_vgg.ipynb index 45e167b4..e9808232 100644 --- a/megapixels/notebooks/face_analysis/face_recognition_vgg.ipynb +++ b/megapixels/notebooks/face_analysis/face_recognition_vgg.ipynb @@ -372,10 +372,42 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 452, "metadata": {}, "outputs": [], - "source": [] + "source": [ + "a = [.1, .2, .3, 1.1]" + ] + }, + { + "cell_type": "code", + "execution_count": 456, + "metadata": {}, + "outputs": [], + "source": [ + "from PIL import Image" + ] + }, + { + "cell_type": "code", + "execution_count": 464, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(590, 760) (372, 480)\n" + ] + } + ], + "source": [ + "fp_im_test = '/home/adam/Downloads/faces/snowden.jpg'\n", + "im_rs = Image.open(fp_im_test).convert('RGB')\n", + "im_rs_sm = im_rs.copy()\n", + "im_rs_sm.thumbnail((480,480))\n", + "print(im_rs.size, '', im_rs_sm.size)" + ] }, { "cell_type": "code", -- cgit v1.2.3-70-g09d2