aagoluoglu commited on
Commit
cb086ee
·
verified ·
1 Parent(s): aa45550

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -226,10 +226,10 @@ def server(input: Inputs, output: Outputs, session: Session):
226
  fig, axes = plt.subplots(1, 4, figsize=(15, 5))
227
 
228
  # Extract the image data
229
- image_data = image.cpu().detach().numpy()
230
 
231
  # Plot the first image on the left
232
- axes[0].imshow(image_data)
233
  axes[0].set_title("Image")
234
 
235
  # Plot the probability map on the right
@@ -241,7 +241,7 @@ def server(input: Inputs, output: Outputs, session: Session):
241
  axes[2].set_title("Prediction")
242
 
243
  # Plot the predicted mask on the right
244
- axes[3].imshow(image_data)
245
  show_mask(prediction, axes[3])
246
  axes[3].set_title("Predicted Mask")
247
 
 
226
  fig, axes = plt.subplots(1, 4, figsize=(15, 5))
227
 
228
  # Extract the image data
229
+ #image_data = image.cpu().detach().numpy()
230
 
231
  # Plot the first image on the left
232
+ axes[0].imshow(image)
233
  axes[0].set_title("Image")
234
 
235
  # Plot the probability map on the right
 
241
  axes[2].set_title("Prediction")
242
 
243
  # Plot the predicted mask on the right
244
+ axes[3].imshow(image)
245
  show_mask(prediction, axes[3])
246
  axes[3].set_title("Predicted Mask")
247