|
66 | 66 | "name": "stdout",
|
67 | 67 | "output_type": "stream",
|
68 | 68 | "text": [
|
69 |
| - "9.28 ms ± 375 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
| 69 | + "9.3 ms ± 1.31 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
70 | 70 | ]
|
71 | 71 | }
|
72 | 72 | ],
|
|
75 | 75 | "height = 100\n",
|
76 | 76 | "\n",
|
77 | 77 | "drr = DRR(volume, spacing, sdr=300.0, height=height, delx=4.0).to(device)\n",
|
78 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 78 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
79 | 79 | "del drr"
|
80 | 80 | ]
|
81 | 81 | },
|
|
89 | 89 | "name": "stdout",
|
90 | 90 | "output_type": "stream",
|
91 | 91 | "text": [
|
92 |
| - "33.3 ms ± 14.3 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n" |
| 92 | + "34.9 ms ± 326 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
93 | 93 | ]
|
94 | 94 | }
|
95 | 95 | ],
|
96 | 96 | "source": [
|
97 |
| - "#|cuda\n", |
| 97 | + "# |cuda\n", |
98 | 98 | "height = 200\n",
|
99 | 99 | "\n",
|
100 | 100 | "drr = DRR(volume, spacing, sdr=300.0, height=height, delx=4.0).to(device)\n",
|
101 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 101 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
102 | 102 | "del drr"
|
103 | 103 | ]
|
104 | 104 | },
|
|
112 | 112 | "name": "stdout",
|
113 | 113 | "output_type": "stream",
|
114 | 114 | "text": [
|
115 |
| - "72.1 ms ± 30.2 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n" |
| 115 | + "72.3 ms ± 158 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
116 | 116 | ]
|
117 | 117 | }
|
118 | 118 | ],
|
|
121 | 121 | "height = 300\n",
|
122 | 122 | "\n",
|
123 | 123 | "drr = DRR(volume, spacing, sdr=300.0, height=height, delx=4.0).to(device)\n",
|
124 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 124 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
125 | 125 | "del drr"
|
126 | 126 | ]
|
127 | 127 | },
|
|
135 | 135 | "name": "stdout",
|
136 | 136 | "output_type": "stream",
|
137 | 137 | "text": [
|
138 |
| - "123 ms ± 35.1 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n" |
| 138 | + "123 ms ± 434 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
139 | 139 | ]
|
140 | 140 | }
|
141 | 141 | ],
|
|
144 | 144 | "height = 400\n",
|
145 | 145 | "\n",
|
146 | 146 | "drr = DRR(volume, spacing, sdr=300.0, height=height, delx=4.0).to(device)\n",
|
147 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 147 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
148 | 148 | "del drr"
|
149 | 149 | ]
|
150 | 150 | },
|
|
158 | 158 | "name": "stdout",
|
159 | 159 | "output_type": "stream",
|
160 | 160 | "text": [
|
161 |
| - "187 ms ± 96.1 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n" |
| 161 | + "185 ms ± 666 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
162 | 162 | ]
|
163 | 163 | }
|
164 | 164 | ],
|
|
167 | 167 | "height = 500\n",
|
168 | 168 | "\n",
|
169 | 169 | "drr = DRR(volume, spacing, sdr=300.0, height=height, delx=4.0).to(device)\n",
|
170 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 170 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
171 | 171 | "del drr"
|
172 | 172 | ]
|
173 | 173 | },
|
|
201 | 201 | "name": "stdout",
|
202 | 202 | "output_type": "stream",
|
203 | 203 | "text": [
|
204 |
| - "183 ms ± 214 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n" |
| 204 | + "186 ms ± 1.23 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
205 | 205 | ]
|
206 | 206 | }
|
207 | 207 | ],
|
|
213 | 213 | "drr = DRR(\n",
|
214 | 214 | " volume, spacing, sdr=300.0, height=height, delx=4.0, patch_size=patch_size\n",
|
215 | 215 | ").to(device)\n",
|
216 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 216 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
217 | 217 | "del drr"
|
218 | 218 | ]
|
219 | 219 | },
|
|
227 | 227 | "name": "stdout",
|
228 | 228 | "output_type": "stream",
|
229 | 229 | "text": [
|
230 |
| - "259 ms ± 92.7 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
| 230 | + "262 ms ± 250 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
231 | 231 | ]
|
232 | 232 | }
|
233 | 233 | ],
|
|
239 | 239 | "drr = DRR(\n",
|
240 | 240 | " volume, spacing, sdr=300.0, height=height, delx=4.0, patch_size=patch_size\n",
|
241 | 241 | ").to(device)\n",
|
242 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 242 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
243 | 243 | "del drr"
|
244 | 244 | ]
|
245 | 245 | },
|
|
253 | 253 | "name": "stdout",
|
254 | 254 | "output_type": "stream",
|
255 | 255 | "text": [
|
256 |
| - "417 ms ± 234 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
| 256 | + "418 ms ± 1.64 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
257 | 257 | ]
|
258 | 258 | }
|
259 | 259 | ],
|
|
265 | 265 | "drr = DRR(\n",
|
266 | 266 | " volume, spacing, sdr=300.0, height=height, delx=4.0, patch_size=patch_size\n",
|
267 | 267 | ").to(device)\n",
|
268 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 268 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
269 | 269 | "del drr"
|
270 | 270 | ]
|
271 | 271 | },
|
|
279 | 279 | "name": "stdout",
|
280 | 280 | "output_type": "stream",
|
281 | 281 | "text": [
|
282 |
| - "826 ms ± 268 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
| 282 | + "828 ms ± 2.89 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n" |
283 | 283 | ]
|
284 | 284 | }
|
285 | 285 | ],
|
|
291 | 291 | "drr = DRR(\n",
|
292 | 292 | " volume, spacing, sdr=300.0, height=height, delx=4.0, patch_size=patch_size\n",
|
293 | 293 | ").to(device)\n",
|
294 |
| - "%timeit drr(rotations, translations, \"euler_angles\", \"ZYX\")\n", |
| 294 | + "%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZYX\")\n", |
295 | 295 | "del drr"
|
296 | 296 | ]
|
297 | 297 | },
|
|
0 commit comments