ombui commited on
Commit
b51b1ad
·
1 Parent(s): ff3bf26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -24,7 +24,9 @@ dice_loss = sm.losses.DiceLoss(class_weights = weights)
24
  focal_loss = sm.losses.CategoricalFocalLoss()
25
  total_loss = dice_loss + (1 * focal_loss)
26
 
27
- satellite_model = load_model('model/satellite_segmentation_full.h5',custom_objects=({'dice_loss_plus_1focal_loss': total_loss,|'jaccard_coef': jaccard_coef}))
 
 
28
 
29
  def process_input_image(image_source):
30
  image = np.expand_dims(image_source, 0)
 
24
  focal_loss = sm.losses.CategoricalFocalLoss()
25
  total_loss = dice_loss + (1 * focal_loss)
26
 
27
+ satellite_model = load_model('C:/Users/sa/Desktop/Model_Training/satellite_segmentation_full.h5',
28
+ custom_objects=({'dice_loss_plus_1focal_loss': total_loss,
29
+ 'jaccard_coef': jaccard_coef}))
30
 
31
  def process_input_image(image_source):
32
  image = np.expand_dims(image_source, 0)