load converted keras models
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ DEFAULT_IMAGE_PATH = "SE_001_cut.png"
|
|
| 23 |
model1_windowsize = [250,250]
|
| 24 |
#model1_threshold = 0.7
|
| 25 |
|
| 26 |
-
model1 = keras.models.load_model('rwthmaterials_dp800_network1_inclusion.
|
| 27 |
model1.compile()
|
| 28 |
|
| 29 |
damage_classes = {3: "Martensite",2: "Interface",0:"Notch",1:"Shadowing"}
|
|
@@ -31,7 +31,7 @@ damage_classes = {3: "Martensite",2: "Interface",0:"Notch",1:"Shadowing"}
|
|
| 31 |
model2_windowsize = [100,100]
|
| 32 |
#model2_threshold = 0.5
|
| 33 |
|
| 34 |
-
model2 = keras.models.load_model('rwthmaterials_dp800_network2_damage.
|
| 35 |
model2.compile()
|
| 36 |
|
| 37 |
|
|
|
|
| 23 |
model1_windowsize = [250,250]
|
| 24 |
#model1_threshold = 0.7
|
| 25 |
|
| 26 |
+
model1 = keras.models.load_model('rwthmaterials_dp800_network1_inclusion.keras')
|
| 27 |
model1.compile()
|
| 28 |
|
| 29 |
damage_classes = {3: "Martensite",2: "Interface",0:"Notch",1:"Shadowing"}
|
|
|
|
| 31 |
model2_windowsize = [100,100]
|
| 32 |
#model2_threshold = 0.5
|
| 33 |
|
| 34 |
+
model2 = keras.models.load_model('rwthmaterials_dp800_network2_damage.keras')
|
| 35 |
model2.compile()
|
| 36 |
|
| 37 |
|