update wut-predict jupyter for newer tf/keras
parent
8cdf0970c9
commit
6cdb5a304e
|
@ -67,6 +67,16 @@
|
||||||
"import tensorflow.python.keras"
|
"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",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
|
@ -75,13 +85,13 @@
|
||||||
"source": [
|
"source": [
|
||||||
"from tensorflow.python.keras import Sequential\n",
|
"from tensorflow.python.keras import Sequential\n",
|
||||||
"from tensorflow.python.keras.layers import Activation, Dropout, Flatten, Dense\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.layers import Convolution2D, MaxPooling2D, ZeroPadding2D\n",
|
||||||
"from tensorflow.python.keras import optimizers\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.models import load_model\n",
|
||||||
"from tensorflow.python.keras.preprocessing.image import load_img\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 img_to_array"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -276,7 +286,7 @@
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"plotImages(sample_test_images[0:1])"
|
"plotImages(sample_test_images[0:3])"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue