Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def decompose_cavity(pred, th2=0.7, amin=10):
|
|
103 |
data = np.array([X,Y]).reshape(2, -1)
|
104 |
|
105 |
# DBSCAN CLUSTERING ALGORITHM
|
106 |
-
try: clusters = DBSCAN(eps=1.
|
107 |
except: clusters = []
|
108 |
|
109 |
N = len(set(clusters))
|
@@ -170,6 +170,7 @@ if uploaded_file is not None:
|
|
170 |
col1.subheader("Input image")
|
171 |
col3.subheader("Prediction")
|
172 |
col5.subheader("Decomposed")
|
|
|
173 |
|
174 |
with col1:
|
175 |
|
|
|
103 |
data = np.array([X,Y]).reshape(2, -1)
|
104 |
|
105 |
# DBSCAN CLUSTERING ALGORITHM
|
106 |
+
try: clusters = DBSCAN(eps=1.0, min_samples=3).fit(data.T).labels_
|
107 |
except: clusters = []
|
108 |
|
109 |
N = len(set(clusters))
|
|
|
170 |
col1.subheader("Input image")
|
171 |
col3.subheader("Prediction")
|
172 |
col5.subheader("Decomposed")
|
173 |
+
col6.subheader("")
|
174 |
|
175 |
with col1:
|
176 |
|