Update pages/testSeg.py
Browse files5 unmodified lines67891011125 unmodified linesfrom tensorflow.keras.preprocessing.image import img_to_array, load_img# Load the trained U-Net modelmodel = tf.keras.models.load_model("unet_model.keras")# Define a function to preprocess the imagedef preprocess_image(uploaded_image, target_size=(128, 128)):5 unmodified lines67891011125 unmodified linesfrom tensorflow.keras.preprocessing.image import img_to_array, load_img# Load the trained U-Net modelmodel = tf.keras.models.load_model("pages/dyskera_unet_model.keras")# Define a function to preprocess the imagedef preprocess_image(uploaded_image, target_size=(128, 128)):
pages/testSeg.py+1-1