Skip to content

Commit 3184ba0

Browse files
committed
update: rerun notebooks with latest version, dark figs
1 parent c559f00 commit 3184ba0

3 files changed

Lines changed: 76 additions & 55 deletions

File tree

panoptica/example_spine_matched_instance.ipynb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"name": "stdout",
2424
"output_type": "stream",
2525
"text": [
26-
"Requirement already satisfied: panoptica in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.5.2)\n",
26+
"Requirement already satisfied: panoptica in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.5.11)\n",
2727
"Requirement already satisfied: auxiliary in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (0.0.35)\n",
2828
"Requirement already satisfied: rich in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (13.6.0)\n",
2929
"Requirement already satisfied: numpy in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (1.25.2)\n",
@@ -79,7 +79,7 @@
7979
"To demonstrate we use a reference and predicition of spine a segmentation with matched instances.\n",
8080
"\n",
8181
"\n",
82-
"<img src=\"./spine_seg/matched_instance/fig.png\" alt=\"matched_instance_figure\" height=\"300\"/>\n"
82+
"<img src=\"./spine_seg/matched_instance/fig_dark.png\" alt=\"matched_instance_figure\" height=\"300\"/>\n"
8383
]
8484
},
8585
{
@@ -125,7 +125,7 @@
125125
"name": "stdout",
126126
"output_type": "stream",
127127
"text": [
128-
"evaluate took 3.041011333465576 seconds to execute.\n"
128+
"evaluate took 2.727099895477295 seconds to execute.\n"
129129
]
130130
}
131131
],
@@ -163,21 +163,21 @@
163163
"False Positives (fp): 3\n",
164164
"False Negatives (fn): 3\n",
165165
"Recognition Quality / F1 Score (RQ): 0.8636363636363636\n",
166-
"Segmentation Quality (SQ): 0.8328184295330796 ± 0.15186064004517466\n",
167-
"Panoptic Quality (PQ): 0.719252280051296\n",
168-
"DSC-based Segmentation Quality (DQ_DSC): 0.900292616009954 ± 0.1025356617495733\n",
166+
"Segmentation Quality (SQ): 0.8328184295330797 ± 0.1518606400451747\n",
167+
"Panoptic Quality (PQ): 0.7192522800512962\n",
168+
"DSC-based Segmentation Quality (DQ_DSC): 0.900292616009954 ± 0.10253566174957332\n",
169169
"DSC-based Panoptic Quality (PQ_DSC): 0.7775254410995057\n",
170-
"Average symmetric surface distance (ASSD): 0.25033188787922506 ± 0.07696680402317077\n"
170+
"Average symmetric surface distance (ASSD): 0.250331887879225 ± 0.07696680402317076\n"
171171
]
172172
},
173173
{
174174
"data": {
175175
"text/html": [
176-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">result.<span style=\"color: #808000; text-decoration-color: #808000\">pq</span>=<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.719252280051296</span>\n",
176+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">result.<span style=\"color: #808000; text-decoration-color: #808000\">pq</span>=<span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.7192522800512962</span>\n",
177177
"</pre>\n"
178178
],
179179
"text/plain": [
180-
"result.\u001b[33mpq\u001b[0m=\u001b[1;36m0\u001b[0m\u001b[1;36m.719252280051296\u001b[0m\n"
180+
"result.\u001b[33mpq\u001b[0m=\u001b[1;36m0\u001b[0m\u001b[1;36m.7192522800512962\u001b[0m\n"
181181
]
182182
},
183183
"metadata": {},
@@ -194,14 +194,14 @@
194194
" <span style=\"color: #008000; text-decoration-color: #008000\">'fp'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span>,\n",
195195
" <span style=\"color: #008000; text-decoration-color: #008000\">'fn'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">3</span>,\n",
196196
" <span style=\"color: #008000; text-decoration-color: #008000\">'rq'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.8636363636363636</span>,\n",
197-
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.8328184295330796</span>,\n",
198-
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.15186064004517466</span>,\n",
199-
" <span style=\"color: #008000; text-decoration-color: #008000\">'pq'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.719252280051296</span>,\n",
197+
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.8328184295330797</span>,\n",
198+
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.1518606400451747</span>,\n",
199+
" <span style=\"color: #008000; text-decoration-color: #008000\">'pq'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.7192522800512962</span>,\n",
200200
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_dsc'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.900292616009954</span>,\n",
201-
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_dsc_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.1025356617495733</span>,\n",
201+
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_dsc_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.10253566174957332</span>,\n",
202202
" <span style=\"color: #008000; text-decoration-color: #008000\">'pq_dsc'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.7775254410995057</span>,\n",
203-
" <span style=\"color: #008000; text-decoration-color: #008000\">'assd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.25033188787922506</span>,\n",
204-
" <span style=\"color: #008000; text-decoration-color: #008000\">'assd_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.07696680402317077</span>\n",
203+
" <span style=\"color: #008000; text-decoration-color: #008000\">'assd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.250331887879225</span>,\n",
204+
" <span style=\"color: #008000; text-decoration-color: #008000\">'assd_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.07696680402317076</span>\n",
205205
"<span style=\"font-weight: bold\">}</span>\n",
206206
"</pre>\n"
207207
],
@@ -214,14 +214,14 @@
214214
" \u001b[32m'fp'\u001b[0m: \u001b[1;36m3\u001b[0m,\n",
215215
" \u001b[32m'fn'\u001b[0m: \u001b[1;36m3\u001b[0m,\n",
216216
" \u001b[32m'rq'\u001b[0m: \u001b[1;36m0.8636363636363636\u001b[0m,\n",
217-
" \u001b[32m'sq'\u001b[0m: \u001b[1;36m0.8328184295330796\u001b[0m,\n",
218-
" \u001b[32m'sq_sd'\u001b[0m: \u001b[1;36m0.15186064004517466\u001b[0m,\n",
219-
" \u001b[32m'pq'\u001b[0m: \u001b[1;36m0.719252280051296\u001b[0m,\n",
217+
" \u001b[32m'sq'\u001b[0m: \u001b[1;36m0.8328184295330797\u001b[0m,\n",
218+
" \u001b[32m'sq_sd'\u001b[0m: \u001b[1;36m0.1518606400451747\u001b[0m,\n",
219+
" \u001b[32m'pq'\u001b[0m: \u001b[1;36m0.7192522800512962\u001b[0m,\n",
220220
" \u001b[32m'sq_dsc'\u001b[0m: \u001b[1;36m0.900292616009954\u001b[0m,\n",
221-
" \u001b[32m'sq_dsc_sd'\u001b[0m: \u001b[1;36m0.1025356617495733\u001b[0m,\n",
221+
" \u001b[32m'sq_dsc_sd'\u001b[0m: \u001b[1;36m0.10253566174957332\u001b[0m,\n",
222222
" \u001b[32m'pq_dsc'\u001b[0m: \u001b[1;36m0.7775254410995057\u001b[0m,\n",
223-
" \u001b[32m'assd'\u001b[0m: \u001b[1;36m0.25033188787922506\u001b[0m,\n",
224-
" \u001b[32m'assd_sd'\u001b[0m: \u001b[1;36m0.07696680402317077\u001b[0m\n",
223+
" \u001b[32m'assd'\u001b[0m: \u001b[1;36m0.250331887879225\u001b[0m,\n",
224+
" \u001b[32m'assd_sd'\u001b[0m: \u001b[1;36m0.07696680402317076\u001b[0m\n",
225225
"\u001b[1m}\u001b[0m\n"
226226
]
227227
},

panoptica/example_spine_semantic.ipynb

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": 4,
19+
"execution_count": 1,
2020
"metadata": {},
2121
"outputs": [
2222
{
2323
"name": "stdout",
2424
"output_type": "stream",
2525
"text": [
26-
"Requirement already satisfied: panoptica in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.5.2)\n",
26+
"Requirement already satisfied: panoptica in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.5.11)\n",
2727
"Requirement already satisfied: auxiliary in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (0.0.35)\n",
2828
"Requirement already satisfied: rich in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (13.6.0)\n",
2929
"Requirement already satisfied: numpy in /Users/marcelrosier/opt/anaconda3/envs/brainles/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (1.25.2)\n",
@@ -55,7 +55,7 @@
5555
},
5656
{
5757
"cell_type": "code",
58-
"execution_count": 5,
58+
"execution_count": 2,
5959
"metadata": {},
6060
"outputs": [],
6161
"source": [
@@ -80,12 +80,12 @@
8080
"To demonstrate we use a reference and predicition of spine a segmentation without instances.\n",
8181
"\n",
8282
"\n",
83-
"<img src=\"./spine_seg/semantic/fig.png\" alt=\"matched_instance_figure\" height=\"300\"/>"
83+
"<img src=\"./spine_seg/semantic/fig_dark.png\" alt=\"matched_instance_figure\" height=\"300\"/>"
8484
]
8585
},
8686
{
8787
"cell_type": "code",
88-
"execution_count": 6,
88+
"execution_count": 3,
8989
"metadata": {},
9090
"outputs": [],
9191
"source": [
@@ -106,14 +106,23 @@
106106
},
107107
{
108108
"cell_type": "code",
109-
"execution_count": 7,
109+
"execution_count": 4,
110110
"metadata": {},
111111
"outputs": [
112112
{
113113
"name": "stdout",
114114
"output_type": "stream",
115115
"text": [
116-
"evaluate took 16.80208992958069 seconds to execute.\n"
116+
"Panoptic: Start Evaluation\n",
117+
"-- Cropped from (512, 512, 17) to (170, 512, 17)\n",
118+
"-- Got SemanticPair, will approximate instances\n",
119+
"-- Set dtype to <class 'numpy.uint8'>\n",
120+
"-- approximate_instances took 0.03729510307312012 seconds to execute.\n",
121+
"-- Got UnmatchedInstancePair, will match instances\n",
122+
"-- match_instances took 0.6606709957122803 seconds to execute.\n",
123+
"-- Got MatchedInstancePair, will evaluate instances\n",
124+
"-- evaluate_matched_instance took 3.3390767574310303 seconds to execute.\n",
125+
"-- evaluate took 4.071817874908447 seconds to execute.\n"
117126
]
118127
}
119128
],
@@ -140,7 +149,7 @@
140149
},
141150
{
142151
"cell_type": "code",
143-
"execution_count": 8,
152+
"execution_count": 5,
144153
"metadata": {},
145154
"outputs": [
146155
{
@@ -155,9 +164,10 @@
155164
"Recognition Quality / F1 Score (RQ): 0.8295454545454546\n",
156165
"Segmentation Quality (SQ): 0.7940127477906024 ± 0.11547745015679488\n",
157166
"Panoptic Quality (PQ): 0.6586696657808406\n",
158-
"DSC-based Segmentation Quality (DQ_DSC): 0.8802182546605446 ± 0.07728416427007166\n",
167+
"DSC-based Segmentation Quality (DQ_DSC): 0.8802182546605446 ± 0.07728416427007168\n",
159168
"DSC-based Panoptic Quality (PQ_DSC): 0.7301810521615881\n",
160-
"Average symmetric surface distance (ASSD): 0.20573710924944655 ± 0.1398348236766068\n"
169+
"Average symmetric surface distance (ASSD): 0.2057371092494465 ± 0.1398348236766068\n",
170+
"ASSD-based Panoptic Quality (PQ_ASSD): 0.17066828380919993\n"
161171
]
162172
},
163173
{
@@ -188,10 +198,11 @@
188198
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.11547745015679488</span>,\n",
189199
" <span style=\"color: #008000; text-decoration-color: #008000\">'pq'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.6586696657808406</span>,\n",
190200
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_dsc'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.8802182546605446</span>,\n",
191-
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_dsc_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.07728416427007166</span>,\n",
201+
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_dsc_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.07728416427007168</span>,\n",
192202
" <span style=\"color: #008000; text-decoration-color: #008000\">'pq_dsc'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.7301810521615881</span>,\n",
193-
" <span style=\"color: #008000; text-decoration-color: #008000\">'assd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.20573710924944655</span>,\n",
194-
" <span style=\"color: #008000; text-decoration-color: #008000\">'assd_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.1398348236766068</span>\n",
203+
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_assd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.2057371092494465</span>,\n",
204+
" <span style=\"color: #008000; text-decoration-color: #008000\">'sq_assd_sd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.1398348236766068</span>,\n",
205+
" <span style=\"color: #008000; text-decoration-color: #008000\">'pq_assd'</span>: <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">0.17066828380919993</span>\n",
195206
"<span style=\"font-weight: bold\">}</span>\n",
196207
"</pre>\n"
197208
],
@@ -208,10 +219,11 @@
208219
" \u001b[32m'sq_sd'\u001b[0m: \u001b[1;36m0.11547745015679488\u001b[0m,\n",
209220
" \u001b[32m'pq'\u001b[0m: \u001b[1;36m0.6586696657808406\u001b[0m,\n",
210221
" \u001b[32m'sq_dsc'\u001b[0m: \u001b[1;36m0.8802182546605446\u001b[0m,\n",
211-
" \u001b[32m'sq_dsc_sd'\u001b[0m: \u001b[1;36m0.07728416427007166\u001b[0m,\n",
222+
" \u001b[32m'sq_dsc_sd'\u001b[0m: \u001b[1;36m0.07728416427007168\u001b[0m,\n",
212223
" \u001b[32m'pq_dsc'\u001b[0m: \u001b[1;36m0.7301810521615881\u001b[0m,\n",
213-
" \u001b[32m'assd'\u001b[0m: \u001b[1;36m0.20573710924944655\u001b[0m,\n",
214-
" \u001b[32m'assd_sd'\u001b[0m: \u001b[1;36m0.1398348236766068\u001b[0m\n",
224+
" \u001b[32m'sq_assd'\u001b[0m: \u001b[1;36m0.2057371092494465\u001b[0m,\n",
225+
" \u001b[32m'sq_assd_sd'\u001b[0m: \u001b[1;36m0.1398348236766068\u001b[0m,\n",
226+
" \u001b[32m'pq_assd'\u001b[0m: \u001b[1;36m0.17066828380919993\u001b[0m\n",
215227
"\u001b[1m}\u001b[0m\n"
216228
]
217229
},

0 commit comments

Comments
 (0)