move damage_sites inside function
Browse files
app.py
CHANGED
|
@@ -12,7 +12,6 @@ logging.getLogger().setLevel(logging.INFO)
|
|
| 12 |
from tensorflow import keras
|
| 13 |
|
| 14 |
#image_threshold = 20
|
| 15 |
-
damage_sites = {}
|
| 16 |
|
| 17 |
model1_windowsize = [250,250]
|
| 18 |
#model1_threshold = 0.7
|
|
@@ -34,8 +33,8 @@ model2.compile()
|
|
| 34 |
## Function to do the actual damage classification
|
| 35 |
##
|
| 36 |
def damage_classification(SEM_image,image_threshold, model1_threshold, model2_threshold):
|
| 37 |
-
|
| 38 |
-
|
| 39 |
##
|
| 40 |
## clustering
|
| 41 |
##
|
|
|
|
| 12 |
from tensorflow import keras
|
| 13 |
|
| 14 |
#image_threshold = 20
|
|
|
|
| 15 |
|
| 16 |
model1_windowsize = [250,250]
|
| 17 |
#model1_threshold = 0.7
|
|
|
|
| 33 |
## Function to do the actual damage classification
|
| 34 |
##
|
| 35 |
def damage_classification(SEM_image,image_threshold, model1_threshold, model2_threshold):
|
| 36 |
+
|
| 37 |
+
damage_sites = {}
|
| 38 |
##
|
| 39 |
## clustering
|
| 40 |
##
|