diff options
| author | adamhrv <adam@ahprojects.com> | 2019-01-17 11:26:41 +0100 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-01-17 11:26:41 +0100 |
| commit | cb4d6d6f5be213edbc4f3b1e4452e5b7ce5e9378 (patch) | |
| tree | a6a66d408e68c9a1401cc729a72952ea8f200762 /megapixels/notebooks | |
| parent | a672dfdfdbac7cdac43e22c5d0bf29550770e2ad (diff) | |
updates for batch processing
Diffstat (limited to 'megapixels/notebooks')
| -rw-r--r-- | megapixels/notebooks/face_analysis/face_recognition_vgg.ipynb | 36 |
1 files changed, 34 insertions, 2 deletions
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", |
