update wut-predict jupyter for newer tf/keras

master
root 2022-05-29 15:47:22 -06:00
parent 8cdf0970c9
commit 6cdb5a304e
1 changed files with 15 additions and 5 deletions

View File

@ -67,6 +67,16 @@
"import tensorflow.python.keras"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from tensorflow import keras\n",
"from tensorflow.keras import layers"
]
},
{
"cell_type": "code",
"execution_count": null,
@ -75,13 +85,13 @@
"source": [
"from tensorflow.python.keras import Sequential\n",
"from tensorflow.python.keras.layers import Activation, Dropout, Flatten, Dense\n",
"from tensorflow.python.keras.preprocessing.image import ImageDataGenerator\n",
"from keras.preprocessing.image import ImageDataGenerator\n",
"from tensorflow.python.keras.layers import Convolution2D, MaxPooling2D, ZeroPadding2D\n",
"from tensorflow.python.keras import optimizers\n",
"from tensorflow.python.keras.preprocessing import image\n",
"from keras.preprocessing import image\n",
"from tensorflow.python.keras.models import load_model\n",
"from tensorflow.python.keras.preprocessing.image import load_img\n",
"from tensorflow.python.keras.preprocessing.image import img_to_array"
"#from tensorflow.python.keras.preprocessing.image import load_img\n",
"#from tensorflow.python.keras.preprocessing.image import img_to_array"
]
},
{
@ -276,7 +286,7 @@
"metadata": {},
"outputs": [],
"source": [
"plotImages(sample_test_images[0:1])"
"plotImages(sample_test_images[0:3])"
]
},
{