Update app.py
Browse files
app.py
CHANGED
@@ -89,11 +89,13 @@ if uploaded_file is not None:
|
|
89 |
|
90 |
with col2:
|
91 |
st.button('Detect cavities')
|
92 |
-
data, wcs = cut(
|
93 |
|
|
|
|
|
94 |
y_pred = 0
|
95 |
for j in [0,1,2,3]:
|
96 |
-
rotated = np.rot90(, j)
|
97 |
pred = model.predict(rotated.reshape(1, 128, 128, 1)).reshape(128 ,128)
|
98 |
pred = np.rot90(pred, -j)
|
99 |
y_pred += pred / 4
|
|
|
89 |
|
90 |
with col2:
|
91 |
st.button('Detect cavities')
|
92 |
+
data, wcs = cut(data, wcs, scale=scale)
|
93 |
|
94 |
+
image = np.log10(data+1)
|
95 |
+
|
96 |
y_pred = 0
|
97 |
for j in [0,1,2,3]:
|
98 |
+
rotated = np.rot90(image, j)
|
99 |
pred = model.predict(rotated.reshape(1, 128, 128, 1)).reshape(128 ,128)
|
100 |
pred = np.rot90(pred, -j)
|
101 |
y_pred += pred / 4
|