sanjay-subramanya
commited on
Commit
•
24f582c
1
Parent(s):
2ac5ce4
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ dice_loss = sm.losses.DiceLoss(class_weights = weights)
|
|
21 |
focal_loss = sm.losses.CategoricalFocalLoss()
|
22 |
total_loss = dice_loss + focal_loss
|
23 |
|
24 |
-
saved_model = load_model('/
|
25 |
custom_objects=({'dice_loss_plus_focal_loss': total_loss, 'jaccard_coef': jaccard_coef}))
|
26 |
|
27 |
def process_input_image(image_source):
|
|
|
21 |
focal_loss = sm.losses.CategoricalFocalLoss()
|
22 |
total_loss = dice_loss + focal_loss
|
23 |
|
24 |
+
saved_model = load_model('/model/satellite_segmentation_model.h5',
|
25 |
custom_objects=({'dice_loss_plus_focal_loss': total_loss, 'jaccard_coef': jaccard_coef}))
|
26 |
|
27 |
def process_input_image(image_source):
|