Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 3D rendering of registration
Browse files Browse the repository at this point in the history
eigenvivek committed Jun 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 142a1c4 commit 49ac3bc
Showing 2 changed files with 31 additions and 31 deletions.
25 changes: 24 additions & 1 deletion notebooks/tutorials/optimizers.ipynb
Original file line number Diff line number Diff line change
@@ -736,7 +736,30 @@
"execution_count": null,
"id": "eb74c29e-4187-4cab-a9a7-f328bdc7da45",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"\n",
" <iframe\n",
" width=\"749\"\n",
" height=\"500\"\n",
" src=\"registration.html\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" \n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame>"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from IPython.display import IFrame\n",
"\n",
37 changes: 7 additions & 30 deletions notebooks/tutorials/timing.ipynb
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"9.94 ms ± 1.57 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"10.1 ms ± 1.47 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
@@ -88,7 +88,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"38.3 ms ± 49.3 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"38.1 ms ± 47.1 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
@@ -111,7 +111,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"85.4 ms ± 63.4 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"84.6 ms ± 94 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
@@ -124,29 +124,6 @@
"del drr"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c9a1b0ef",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"151 ms ± 165 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
"source": [
"# |cuda\n",
"height = 400\n",
"\n",
"drr = DRR(subject, sdd=1020, height=height, delx=2.0).to(device)\n",
"%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZXY\")\n",
"del drr"
]
},
{
"cell_type": "markdown",
"id": "8c584ea5-2dc5-4606-ad9c-c04f4fca8ac3",
@@ -177,7 +154,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"217 ms ± 142 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"210 ms ± 379 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
@@ -201,7 +178,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"305 ms ± 823 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"295 ms ± 293 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
@@ -225,7 +202,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"466 ms ± 125 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"458 ms ± 612 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
@@ -249,7 +226,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"924 ms ± 947 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"906 ms ± 232 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],

0 comments on commit 49ac3bc

Please sign in to comment.