From 067605de08a74997412ef34418f527f02e798284 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 May 2022 22:13:30 -0600 Subject: [PATCH] use tf keras --- notebooks/wut-web.ipynb | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/notebooks/wut-web.ipynb b/notebooks/wut-web.ipynb index 29b4143..08f1487 100644 --- a/notebooks/wut-web.ipynb +++ b/notebooks/wut-web.ipynb @@ -3,7 +3,9 @@ { "cell_type": "code", "execution_count": null, - "metadata": {}, + "metadata": { + "tags": [] + }, "outputs": [], "source": [ "# wut-web --- What U Think? Web App: SatNOGS Observation AI, makes predictions.\n", @@ -12,16 +14,40 @@ "#\n", "# GPLv3+\n", "\n", - "import os\n", + "import os" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "import random\n", "import tempfile\n", "import shutil\n", "import tensorflow as tf\n", + "from tensorflow.keras.models import load_model\n", + "from tensorflow.keras.preprocessing.image import ImageDataGenerator\n", "from IPython.display import display, Image\n", - "from IPython.utils import text\n", - "from keras.models import load_model\n", - "from keras.preprocessing.image import ImageDataGenerator\n", - "\n", + "from IPython.utils import text" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "display(Image(filename='/srv/satnogs/satnogs-wut/pics/spacecruft-bk.png'))" ] },