manikanta commited on
Commit
aa5c3e1
1 Parent(s): bf67e19
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -83,10 +83,10 @@ def UNet2_with_STN():
83
  model = Model(inputs, outputs)
84
  return model
85
 
86
- model = UNet2_with_STN()
87
- mean_iou = MeanIoU(num_classes=2)
88
- model.compile(optimizer="adam", loss="binary_crossentropy", metrics=["acc",mean_iou])
89
- model.load_weights('/content/drive/MyDrive/B3_cell_seg/UNet+stn_model_longrun.h5')
90
 
91
  def cellsegmentor(img):
92
 
 
83
  model = Model(inputs, outputs)
84
  return model
85
 
86
+ model = UNet2_with_STN()
87
+ mean_iou = MeanIoU(num_classes=2)
88
+ model.compile(optimizer="adam", loss="binary_crossentropy", metrics=["acc",mean_iou])
89
+ model.load_weights('./model_file/UNet+stn_model_longrun.h5')
90
 
91
  def cellsegmentor(img):
92