|
16 | 16 | }, |
17 | 17 | { |
18 | 18 | "cell_type": "code", |
19 | | - "execution_count": 1, |
| 19 | + "execution_count": 9, |
20 | 20 | "metadata": {}, |
21 | 21 | "outputs": [ |
22 | 22 | { |
23 | 23 | "name": "stdout", |
24 | 24 | "output_type": "stream", |
25 | 25 | "text": [ |
26 | | - "Requirement already satisfied: panoptica in /opt/anaconda3/envs/seg11panoptdev/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (0.6.6.post13.dev0+a2f5dd3)\n", |
| 26 | + "Requirement already satisfied: panoptica in /opt/anaconda3/envs/seg11panoptdev/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (1.0.0.post2.dev0+2f7d01f)\n", |
27 | 27 | "Requirement already satisfied: auxiliary in /opt/anaconda3/envs/seg11panoptdev/lib/python3.11/site-packages (from -r requirements.txt (line 2)) (0.0.42)\n", |
28 | 28 | "Requirement already satisfied: rich in /opt/anaconda3/envs/seg11panoptdev/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (13.6.0)\n", |
29 | 29 | "Requirement already satisfied: numpy in /opt/anaconda3/envs/seg11panoptdev/lib/python3.11/site-packages (from -r requirements.txt (line 4)) (1.25.2)\n", |
|
60 | 60 | }, |
61 | 61 | { |
62 | 62 | "cell_type": "code", |
63 | | - "execution_count": 2, |
| 63 | + "execution_count": 10, |
64 | 64 | "metadata": {}, |
65 | 65 | "outputs": [], |
66 | 66 | "source": [ |
|
90 | 90 | }, |
91 | 91 | { |
92 | 92 | "cell_type": "code", |
93 | | - "execution_count": 3, |
| 93 | + "execution_count": 11, |
94 | 94 | "metadata": {}, |
95 | 95 | "outputs": [ |
96 | 96 | { |
|
102 | 102 | " 106, 107, 108, 202, 203, 204, 205, 206, 207, 208], dtype=uint8))" |
103 | 103 | ] |
104 | 104 | }, |
105 | | - "execution_count": 3, |
| 105 | + "execution_count": 11, |
106 | 106 | "metadata": {}, |
107 | 107 | "output_type": "execute_result" |
108 | 108 | } |
|
124 | 124 | }, |
125 | 125 | { |
126 | 126 | "cell_type": "code", |
127 | | - "execution_count": 4, |
| 127 | + "execution_count": 12, |
128 | 128 | "metadata": {}, |
129 | 129 | "outputs": [ |
130 | | - { |
131 | | - "data": { |
132 | | - "text/html": [ |
133 | | - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #00ff00; text-decoration-color: #00ff00\">────────────────────────────────────────── </span>Thank you for using <span style=\"font-weight: bold\">panoptica</span><span style=\"color: #00ff00; text-decoration-color: #00ff00\"> ──────────────────────────────────────────</span>\n", |
134 | | - "</pre>\n" |
135 | | - ], |
136 | | - "text/plain": [ |
137 | | - "\u001b[92m────────────────────────────────────────── \u001b[0mThank you for using \u001b[1mpanoptica\u001b[0m\u001b[92m ──────────────────────────────────────────\u001b[0m\n" |
138 | | - ] |
139 | | - }, |
140 | | - "metadata": {}, |
141 | | - "output_type": "display_data" |
142 | | - }, |
143 | | - { |
144 | | - "data": { |
145 | | - "text/html": [ |
146 | | - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> Please support our development by citing \n", |
147 | | - "</pre>\n" |
148 | | - ], |
149 | | - "text/plain": [ |
150 | | - " Please support our development by citing \n" |
151 | | - ] |
152 | | - }, |
153 | | - "metadata": {}, |
154 | | - "output_type": "display_data" |
155 | | - }, |
156 | | - { |
157 | | - "data": { |
158 | | - "text/html": [ |
159 | | - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"> <span style=\"color: #0000ff; text-decoration-color: #0000ff; text-decoration: underline\">https://github.com/BrainLesion/panoptica#citation</span> -- Thank you! \n", |
160 | | - "</pre>\n" |
161 | | - ], |
162 | | - "text/plain": [ |
163 | | - " \u001b[4;94mhttps://github.com/BrainLesion/panoptica#citation\u001b[0m -- Thank you! \n" |
164 | | - ] |
165 | | - }, |
166 | | - "metadata": {}, |
167 | | - "output_type": "display_data" |
168 | | - }, |
169 | | - { |
170 | | - "data": { |
171 | | - "text/html": [ |
172 | | - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #00ff00; text-decoration-color: #00ff00\">───────────────────────────────────────────────────────────────────────────────────────────────────────────────────</span>\n", |
173 | | - "</pre>\n" |
174 | | - ], |
175 | | - "text/plain": [ |
176 | | - "\u001b[92m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\n" |
177 | | - ] |
178 | | - }, |
179 | | - "metadata": {}, |
180 | | - "output_type": "display_data" |
181 | | - }, |
182 | | - { |
183 | | - "data": { |
184 | | - "text/html": [ |
185 | | - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n", |
186 | | - "</pre>\n" |
187 | | - ], |
188 | | - "text/plain": [ |
189 | | - "\n" |
190 | | - ] |
191 | | - }, |
192 | | - "metadata": {}, |
193 | | - "output_type": "display_data" |
194 | | - }, |
195 | 130 | { |
196 | 131 | "name": "stdout", |
197 | 132 | "output_type": "stream", |
|
208 | 143 | " decision_threshold=0.5,\n", |
209 | 144 | ")\n", |
210 | 145 | "\n", |
211 | | - "result, debug_data = evaluator.evaluate(pred_masks, ref_masks)[\"ungrouped\"]" |
| 146 | + "result, intermediate_steps_data = evaluator.evaluate(pred_masks, ref_masks)[\"ungrouped\"]" |
212 | 147 | ] |
213 | 148 | }, |
214 | 149 | { |
|
221 | 156 | }, |
222 | 157 | { |
223 | 158 | "cell_type": "code", |
224 | | - "execution_count": 5, |
| 159 | + "execution_count": 13, |
225 | 160 | "metadata": {}, |
226 | 161 | "outputs": [ |
227 | 162 | { |
|
239 | 174 | "\n", |
240 | 175 | "+++ GLOBAL +++\n", |
241 | 176 | "Global Binary Dice (global_bin_dsc): 0.9744370224078394\n", |
242 | | - "Global Binary Centerline Dice (global_bin_cldsc): 0.9637064011802574\n", |
243 | | - "Global Binary Average Symmetric Surface Distance (global_bin_assd): 0.1499152780072207\n", |
244 | | - "Global Binary Relative Volume Difference (global_bin_rvd): -0.0006011763989268869\n", |
245 | 177 | "\n", |
246 | 178 | "+++ INSTANCE +++\n", |
247 | 179 | "Segmentation Quality IoU (sq): 0.8328184295330796 +- 0.15186064004517466\n", |
248 | 180 | "Panoptic Quality IoU (pq): 0.8328184295330796\n", |
249 | 181 | "Segmentation Quality Dsc (sq_dsc): 0.900292616009954 +- 0.10253566174957332\n", |
250 | 182 | "Panoptic Quality Dsc (pq_dsc): 0.900292616009954\n", |
251 | | - "Segmentation Quality Assd (sq_assd): 0.250331887879225 +- 0.07696680402317076\n", |
| 183 | + "Segmentation Quality ASSD (sq_assd): 0.250331887879225 +- 0.07696680402317076\n", |
252 | 184 | "Segmentation Quality Relative Volume Difference (sq_rvd): 0.0028133049062930553 +- 0.034518928495505724\n", |
253 | 185 | "\n" |
254 | 186 | ] |
|
270 | 202 | }, |
271 | 203 | { |
272 | 204 | "cell_type": "code", |
273 | | - "execution_count": 6, |
| 205 | + "execution_count": 14, |
274 | 206 | "metadata": {}, |
275 | 207 | "outputs": [ |
276 | 208 | { |
277 | 209 | "name": "stdout", |
278 | 210 | "output_type": "stream", |
279 | 211 | "text": [ |
280 | | - "Saved config into /opt/anaconda3/envs/seg11panoptdev/lib/python3.11/site-packages/panoptica/test_config.yaml\n" |
| 212 | + "Saved config into /DATA/NAS/ongoing_projects/hendrik/panoptica/repo/panoptica/test_config.yaml\n" |
281 | 213 | ] |
282 | 214 | } |
283 | 215 | ], |
|
306 | 238 | }, |
307 | 239 | { |
308 | 240 | "cell_type": "code", |
309 | | - "execution_count": 7, |
| 241 | + "execution_count": 15, |
310 | 242 | "metadata": {}, |
311 | 243 | "outputs": [ |
312 | 244 | { |
313 | 245 | "name": "stdout", |
314 | 246 | "output_type": "stream", |
315 | 247 | "text": [ |
316 | | - "<panoptica.panoptica_evaluator.Panoptica_Evaluator object at 0x7fbe999a9c90>\n" |
| 248 | + "<panoptica.panoptica_evaluator.Panoptica_Evaluator object at 0x7f05ac7b80d0>\n" |
317 | 249 | ] |
318 | 250 | } |
319 | 251 | ], |
|
324 | 256 | }, |
325 | 257 | { |
326 | 258 | "cell_type": "code", |
327 | | - "execution_count": 8, |
| 259 | + "execution_count": 16, |
328 | 260 | "metadata": {}, |
329 | 261 | "outputs": [ |
330 | 262 | { |
|
335 | 267 | "-- Got MatchedInstancePair, will evaluate instances\n", |
336 | 268 | "\n", |
337 | 269 | "+++ MATCHING +++\n", |
338 | | - "Number of instances in reference (num_ref_instances): 22\n", |
339 | | - "Number of instances in prediction (num_pred_instances): 22\n", |
340 | | - "True Positives (tp): 22\n", |
| 270 | + "Number of instances in reference (num_ref_instances): 1\n", |
| 271 | + "Number of instances in prediction (num_pred_instances): 1\n", |
| 272 | + "True Positives (tp): 1\n", |
341 | 273 | "False Positives (fp): 0\n", |
342 | 274 | "False Negatives (fn): 0\n", |
343 | 275 | "Recognition Quality / F1-Score (rq): 1.0\n", |
344 | 276 | "\n", |
345 | 277 | "+++ GLOBAL +++\n", |
346 | 278 | "Global Binary Dice (global_bin_dsc): 0.9744370224078394\n", |
347 | | - "Global Binary Centerline Dice (global_bin_cldsc): 0.9637064011802574\n", |
348 | | - "Global Binary Average Symmetric Surface Distance (global_bin_assd): 0.1499152780072207\n", |
349 | | - "Global Binary Relative Volume Difference (global_bin_rvd): -0.0006011763989268869\n", |
350 | 279 | "\n", |
351 | 280 | "+++ INSTANCE +++\n", |
352 | | - "Segmentation Quality IoU (sq): 0.8328184295330796 +- 0.15186064004517466\n", |
353 | | - "Panoptic Quality IoU (pq): 0.8328184295330796\n", |
354 | | - "Segmentation Quality Dsc (sq_dsc): 0.900292616009954 +- 0.10253566174957332\n", |
355 | | - "Panoptic Quality Dsc (pq_dsc): 0.900292616009954\n", |
356 | | - "Segmentation Quality Assd (sq_assd): 0.250331887879225 +- 0.07696680402317076\n", |
357 | | - "Segmentation Quality Relative Volume Difference (sq_rvd): 0.0028133049062930553 +- 0.034518928495505724\n", |
| 281 | + "Segmentation Quality IoU (sq): 0.9501484001456879 +- 0.0\n", |
| 282 | + "Panoptic Quality IoU (pq): 0.9501484001456879\n", |
| 283 | + "Segmentation Quality Dsc (sq_dsc): 0.9744370224078394 +- 0.0\n", |
| 284 | + "Panoptic Quality Dsc (pq_dsc): 0.9744370224078394\n", |
| 285 | + "Segmentation Quality ASSD (sq_assd): 0.1499152780072207 +- 0.0\n", |
| 286 | + "Segmentation Quality Relative Volume Difference (sq_rvd): -0.0006011763989268869 +- 0.0\n", |
358 | 287 | "\n" |
359 | 288 | ] |
360 | 289 | } |
|
0 commit comments