Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -26,11 +26,12 @@ def bce_dice(y_true, y_pred):
|
|
26 |
return bce(y_true, y_pred) - K.log(jacard(y_true, y_pred))
|
27 |
|
28 |
|
29 |
-
|
30 |
pach_size = 256
|
31 |
|
32 |
|
33 |
def predict_2(image):
|
|
|
34 |
sizes_list = [256*10, 256*9, 256*8, 256*7, 256*6, 256*5, 256*4, 256*3, 256*2, 256*1]
|
35 |
min_size = min(image.shape)
|
36 |
if min_size%256==0:
|
|
|
26 |
return bce(y_true, y_pred) - K.log(jacard(y_true, y_pred))
|
27 |
|
28 |
|
29 |
+
|
30 |
pach_size = 256
|
31 |
|
32 |
|
33 |
def predict_2(image):
|
34 |
+
size = 1024
|
35 |
sizes_list = [256*10, 256*9, 256*8, 256*7, 256*6, 256*5, 256*4, 256*3, 256*2, 256*1]
|
36 |
min_size = min(image.shape)
|
37 |
if min_size%256==0:
|