Chancee12 commited on
Commit
5b0d644
·
1 Parent(s): 107eb45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ dice_loss = sm.losses.DiceLoss(class_weights = weights)
62
  focal_loss = sm.losses.CategoricalFocalLoss()
63
  total_loss = dice_loss + (1 * focal_loss)
64
 
65
- satellite_model = load_model('model/satellite_segmentation_full_v2.h5', custom_objects=({'dice_loss_plus_1focal_loss' : total_loss, 'jaccard_coef': jaccard_coef}))
66
 
67
  def process_input_image(image_source):
68
  image = np.expand_dims(image_source, 0)
 
62
  focal_loss = sm.losses.CategoricalFocalLoss()
63
  total_loss = dice_loss + (1 * focal_loss)
64
 
65
+ satellite_model = load_model('model/satellite_segmentation_v3_full', custom_objects=({'dice_loss_plus_1focal_loss' : total_loss, 'jaccard_coef': jaccard_coef}))
66
 
67
  def process_input_image(image_source):
68
  image = np.expand_dims(image_source, 0)