From 6cf2360d4bee72dcd9c88db31e5f30a927e3e605 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Thu, 13 Apr 2023 14:21:33 +0200 Subject: [PATCH] also save small fig --- visualise_embeddings.ipynb | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/visualise_embeddings.ipynb b/visualise_embeddings.ipynb index aebef52..8dbedd2 100644 --- a/visualise_embeddings.ipynb +++ b/visualise_embeddings.ipynb @@ -1667,15 +1667,6 @@ " pickle.dump(frame_embeddings, fp)" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "\n" - ] - }, { "cell_type": "code", "execution_count": 30, @@ -1986,7 +1977,7 @@ }, { "cell_type": "code", - "execution_count": 76, + "execution_count": 97, "metadata": {}, "outputs": [], "source": [ @@ -2003,7 +1994,8 @@ " plt.show()\n", " im = Image.fromarray(image)\n", " # im = im.resize((1500,1500))\n", - " im.save(fn)" + " im.save(fn)\n", + " im.resize((1000, 1000)).save(fn[:-4] + '-small.png')" ] }, { @@ -2016,7 +2008,7 @@ }, { "cell_type": "code", - "execution_count": 88, + "execution_count": 98, "metadata": {}, "outputs": [ { @@ -2079,7 +2071,7 @@ }, { "cell_type": "code", - "execution_count": 89, + "execution_count": 99, "metadata": {}, "outputs": [ {