Chancee12 commited on
Commit
f22bd91
·
1 Parent(s): 9272eaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ dice_loss = sm.losses.DiceLoss(class_weights = weights)
77
  focal_loss = sm.losses.CategoricalFocalLoss()
78
  total_loss = dice_loss + (1 * focal_loss)
79
 
80
- satellite_model = tf.keras.models.load_model("satellite_segmentation_v3_full/saved_model.pb", custom_objects=({'dice_loss_plus_1focal_loss': total_loss, 'jaccard_coef': jaccard_coef}))
81
 
82
  def process_input_image(image_source):
83
  image = np.expand_dims(image_source, 0)
 
77
  focal_loss = sm.losses.CategoricalFocalLoss()
78
  total_loss = dice_loss + (1 * focal_loss)
79
 
80
+ satellite_model = tf.keras.models.load_model("satellite_segmentation_v3_full", custom_objects=({'dice_loss_plus_1focal_loss': total_loss, 'jaccard_coef': jaccard_coef}))
81
 
82
  def process_input_image(image_source):
83
  image = np.expand_dims(image_source, 0)