Icon

04. Deploy Model - solution

Annotations and comments
  • Deploy the trained U-Net For Option 1: Use the conda environment for Keras, which was already create in the previous exercise For Option 2: Use the conda environment for Tensorflow2, which was already create in the previous exercise
  • Option 1: Deploy a Unet using No-Code nodes 1. Reuse the Preprocessing Image component created in 01.Exercise to apply the identical preprocessing to the test data 2. Read in your U-Net from the previous exercise using the Model Reader node 3. Use the Conda Environment Propagation node to ensure the correct conda environment (use the Keras environment created in the beginning under Preferences) is selected. 4. Use the Keras Network Executor node to apply the trained model on the test data %%00009- connections: %%00009%%00009- use the preprocessed test data as input %%00009%%00009- use the model from the Model Reader as model input %%00009%%00009- connect the conda environment flow variable from the Conda Environment Propagation node to the Flow Variable input port %%00009- Node Settings: %%00009%%00009- input column: preprocessed image column "Img Calc" %%00009%%00009- add output: select "conv2d_19/Sigmoid:0", Conversion: "To Image", rename column "output" %%00009%%00009- Executable Selection tab: select conda environment flow variable 5. After converting the predicted image to labels, use the Interactive Segmentation View node to evaluate your prediction results
  • Option 2: Deploy a Unet using Tensorflow2 nodes 1. Reuse the Preprocessing Image component created in 01.Exercise to apply the identical preprocessing to the test data 2. Use the Conda Environment Propagation node to ensure the correct conda environment (use the Tensorflow2 environment created in the beginning under Preferences) is selected. 3. Read in your U-Net from the previous exercise using the Tensorflow2 Network Reader node %%00009- Node Settings: %%00009%%00009- Executable Selection tab: select conda environment flow variable 4. Use the Tensorflow2 Network Executor node to apply the trained model on the test data %%00009- connections: %%00009%%00009- use the preprocessed test data as input %%00009%%00009- use the model from the Tensorflow2 Network Reader as model input %%00009- Node settings: %%00009%%00009- input columns: preprocessed image column "Img Calc" %%00009%%00009- add output: select "conv2d_19/Sigmoid:0", Conversion: "To Image", rename column "output" %%00009%%00009- Executable Selection tab: select conda environment flow variable 5. After converting the predicted image to labels, use the Interactive Segmentation View node to evaluate your prediction results
  • convert labelings to byte
  • convert image to label
  • merge predicted labels with input image
  • merge predicted label with input image
  • trained.model
  • normalize images to have values in [-1,1]
  • resize the images to (224, 224)

Nodes

Extensions

Links