ombui commited on
Commit
0f0322a
·
1 Parent(s): fdd86b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ 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('C:/Users/sa/Desktop/Model_Training/satellite_segmentation_full.h5',custom_objects=({'dice_loss_plus_1focal_loss': total_loss,|
28
- 'jaccard_coef': jaccard_coef}))
29
 
30
  def process_input_image(image_source):
31
  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', custom_objects={'dice_loss_plus_1focal_loss': total_loss})
28
+
29
 
30
  def process_input_image(image_source):
31
  image = np.expand_dims(image_source, 0)