httomo-backends 0.7__py3-none-any.whl → 0.7.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/algorithm.py +27 -14
- httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.algorithm/LPRec3d_tomobar.yaml +1 -0
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.2.dist-info}/METADATA +1 -2
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.2.dist-info}/RECORD +7 -7
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.2.dist-info}/WHEEL +0 -0
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.2.dist-info}/licenses/LICENSE +0 -0
- {httomo_backends-0.7.dist-info → httomo_backends-0.7.2.dist-info}/top_level.txt +0 -0
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/algorithm.py
CHANGED
|
@@ -192,7 +192,14 @@ def _calc_memory_bytes_LPRec3d_tomobar(
|
|
|
192
192
|
detector_pad = 0
|
|
193
193
|
|
|
194
194
|
min_mem_usage_filter = False
|
|
195
|
+
if "min_mem_usage_filter" in kwargs:
|
|
196
|
+
min_mem_usage_filter = kwargs["min_mem_usage_filter"]
|
|
195
197
|
min_mem_usage_ifft2 = False
|
|
198
|
+
if "min_mem_usage_ifft2" in kwargs:
|
|
199
|
+
min_mem_usage_ifft2 = kwargs["min_mem_usage_ifft2"]
|
|
200
|
+
power_of_2_cropping = False
|
|
201
|
+
if "power_of_2_cropping" in kwargs:
|
|
202
|
+
power_of_2_cropping = kwargs["power_of_2_cropping"]
|
|
196
203
|
|
|
197
204
|
angles_tot = non_slice_dims_shape[0]
|
|
198
205
|
DetectorsLengthH_prepad = non_slice_dims_shape[1]
|
|
@@ -201,6 +208,10 @@ def _calc_memory_bytes_LPRec3d_tomobar(
|
|
|
201
208
|
_CENTER_SIZE_MIN = 192 # must be divisible by 8
|
|
202
209
|
|
|
203
210
|
n = DetectorsLengthH
|
|
211
|
+
if(power_of_2_cropping):
|
|
212
|
+
n_pow2 = 2 ** math.ceil(math.log2(n))
|
|
213
|
+
if( 0.9 < n / n_pow2 ):
|
|
214
|
+
n = n_pow2
|
|
204
215
|
|
|
205
216
|
odd_horiz = False
|
|
206
217
|
if (n % 2) != 0:
|
|
@@ -339,21 +350,21 @@ def _calc_memory_bytes_LPRec3d_tomobar(
|
|
|
339
350
|
|
|
340
351
|
add_to_memory_counters(tmp_p_input_slice, True)
|
|
341
352
|
if min_mem_usage_filter:
|
|
342
|
-
add_to_memory_counters(rfft_plan_slice_size / 4, False)
|
|
343
|
-
add_to_memory_counters(irfft_plan_slice_size / 4, False)
|
|
344
|
-
add_to_memory_counters(padded_tmp_p_input_slice, False)
|
|
353
|
+
add_to_memory_counters(rfft_plan_slice_size / 4 / projection_chunk_count, False)
|
|
354
|
+
add_to_memory_counters(irfft_plan_slice_size / 4 / projection_chunk_count, False)
|
|
355
|
+
add_to_memory_counters(padded_tmp_p_input_slice / projection_chunk_count, False)
|
|
345
356
|
|
|
346
|
-
add_to_memory_counters(rfft_result_size, False)
|
|
347
|
-
add_to_memory_counters(filtered_rfft_result_size, False)
|
|
348
|
-
add_to_memory_counters(-rfft_result_size, False)
|
|
349
|
-
add_to_memory_counters(-padded_tmp_p_input_slice, False)
|
|
357
|
+
add_to_memory_counters(rfft_result_size / projection_chunk_count, False)
|
|
358
|
+
add_to_memory_counters(filtered_rfft_result_size / projection_chunk_count, False)
|
|
359
|
+
add_to_memory_counters(-rfft_result_size / projection_chunk_count, False)
|
|
360
|
+
add_to_memory_counters(-padded_tmp_p_input_slice / projection_chunk_count, False)
|
|
350
361
|
|
|
351
|
-
add_to_memory_counters(irfft_scratch_memory_size, False)
|
|
352
|
-
add_to_memory_counters(-irfft_scratch_memory_size, False)
|
|
353
|
-
add_to_memory_counters(irfft_result_size, False)
|
|
354
|
-
add_to_memory_counters(-filtered_rfft_result_size, False)
|
|
362
|
+
add_to_memory_counters(irfft_scratch_memory_size / projection_chunk_count, False)
|
|
363
|
+
add_to_memory_counters(-irfft_scratch_memory_size / projection_chunk_count, False)
|
|
364
|
+
add_to_memory_counters(irfft_result_size / projection_chunk_count, False)
|
|
365
|
+
add_to_memory_counters(-filtered_rfft_result_size / projection_chunk_count, False)
|
|
355
366
|
|
|
356
|
-
add_to_memory_counters(-irfft_result_size, False)
|
|
367
|
+
add_to_memory_counters(-irfft_result_size / projection_chunk_count, False)
|
|
357
368
|
else:
|
|
358
369
|
add_to_memory_counters(rfft_plan_slice_size / chunk_count / projection_chunk_count * 2, True)
|
|
359
370
|
add_to_memory_counters(irfft_plan_slice_size / chunk_count / projection_chunk_count * 2, True)
|
|
@@ -402,8 +413,10 @@ def _calc_memory_bytes_LPRec3d_tomobar(
|
|
|
402
413
|
add_to_memory_counters(circular_mask_size, False)
|
|
403
414
|
add_to_memory_counters(after_recon_swapaxis_slice, True)
|
|
404
415
|
|
|
405
|
-
if
|
|
406
|
-
return (tot_memory_bytes * 1.
|
|
416
|
+
if min_mem_usage_filter and min_mem_usage_ifft2:
|
|
417
|
+
return (tot_memory_bytes * 1.15, fixed_amount)
|
|
418
|
+
elif min_mem_usage_filter and not min_mem_usage_ifft2:
|
|
419
|
+
return (tot_memory_bytes + 60 * 1024 * 1024, fixed_amount)
|
|
407
420
|
else:
|
|
408
421
|
return (tot_memory_bytes * 1.1, fixed_amount)
|
|
409
422
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: httomo-backends
|
|
3
|
-
Version: 0.7
|
|
3
|
+
Version: 0.7.2
|
|
4
4
|
Summary: Supplementary files for HTTomo backends.
|
|
5
5
|
Author: Garry ODonnell, Jacob Williamson
|
|
6
6
|
Author-email: Daniil Kazantsev <daniil.kazantsev@diamond.ac.uk>, Yousef Moazzam <yousef.moazzam@diamond.ac.uk>, Jessica Verschoyle <jessica.verschoyle@diamond.ac.uk>, Naman Gera <naman.gera@diamond.ac.uk>, scientificsoftware@diamond.ac.uk
|
|
@@ -22,7 +22,6 @@ Requires-Dist: h5py
|
|
|
22
22
|
Requires-Dist: astra-toolbox
|
|
23
23
|
Requires-Dist: tomobar
|
|
24
24
|
Requires-Dist: scikit-image
|
|
25
|
-
Requires-Dist: ccpi-regularisation-cupy
|
|
26
25
|
Provides-Extra: dev
|
|
27
26
|
Requires-Dist: pytest; extra == "dev"
|
|
28
27
|
Requires-Dist: pytest-mock; extra == "dev"
|
|
@@ -20,7 +20,7 @@ httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs
|
|
|
20
20
|
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/prep/phase.py,sha256=kYznizW0jMVJdGyuE10McVLsWWggUsP5bvJiHEVvSSM,4075
|
|
21
21
|
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/prep/stripe.py,sha256=KnS8IpcXaLeiIWr4qAKwOrcK1vS9zrU6u5gOITZ159k,4623
|
|
22
22
|
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/algorithm.py,sha256=
|
|
23
|
+
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/algorithm.py,sha256=Jq4gp0NDuixGcOD1oHGJg0Vjg58JPVwisaMIb5JYqX8,21529
|
|
24
24
|
httomo_backends/methods_database/packages/backends/httomolibgpu/supporting_funcs/recon/peak_memory_line_profile_hook.py,sha256=hb-CyqD5TKxDg6Rg5fvFeXIO2nvjbp_XMTeRdJZ8ONo,6347
|
|
25
25
|
httomo_backends/methods_database/packages/backends/tomopy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
httomo_backends/methods_database/packages/backends/tomopy/tomopy.yaml,sha256=URe18BAV1EbGLil53t88T42BuKSiUHz6r3uzs_wo8Ug,11215
|
|
@@ -79,7 +79,7 @@ httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.algorithm/CGLS3d_
|
|
|
79
79
|
httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.algorithm/FBP2d_astra.yaml,sha256=MxUbW-dMxMrI4Exn5mgh2ovie4Ldv1Eb-zS68ETsNCU,301
|
|
80
80
|
httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.algorithm/FBP3d_tomobar.yaml,sha256=H9-PTd8qW2qXqgHYw-NfZGgy2yut7ReKsbsR3x0_OOA,261
|
|
81
81
|
httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.algorithm/FISTA3d_tomobar.yaml,sha256=i2K7Yc19VY6uZZR8bVjb85jpWIShlM_yCGD-Z5Eb-5E,442
|
|
82
|
-
httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.algorithm/LPRec3d_tomobar.yaml,sha256=
|
|
82
|
+
httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.algorithm/LPRec3d_tomobar.yaml,sha256=mm3vUiZbLm-KtxjN1VL0LtMaWHdHHolpFFQc1OPkuZk,412
|
|
83
83
|
httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.algorithm/SIRT3d_tomobar.yaml,sha256=oom622LQ8xAZbZiHm4t0PSKKsMkX5G743vVBqRbMQek,277
|
|
84
84
|
httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.rotation/find_center_360.yaml,sha256=nXjbgTBDQcIlBWvXwMd8FoNimtq-8QabgNWAI-fiFU8,322
|
|
85
85
|
httomo_backends/yaml_templates/httomolibgpu/httomolibgpu.recon.rotation/find_center_pc.yaml,sha256=g3CNIaLhhBI6igluIMwytFqVXzrDlv8A1EU1C7ey4FE,208
|
|
@@ -144,8 +144,8 @@ httomo_backends/yaml_templates/tomopy/tomopy.sim.project/add_zingers.yaml,sha256
|
|
|
144
144
|
httomo_backends/yaml_templates/tomopy/tomopy.sim.project/project.yaml,sha256=XBVhW5ZxT9C89tHcwDG7OOgcWNdNtQq97mqlBEoiMnU,202
|
|
145
145
|
httomo_backends/yaml_templates/tomopy/tomopy.sim.project/project2.yaml,sha256=5raeQ-w9nS9mbAzn2ZqhPjdcyfLOkkJflKNStdEnYRA,238
|
|
146
146
|
httomo_backends/yaml_templates/tomopy/tomopy.sim.project/project3.yaml,sha256=oyofKSMi-_dSpfjrKVMNDqoBhBCCSYbEVRz2Lsc8uTI,257
|
|
147
|
-
httomo_backends-0.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
148
|
-
httomo_backends-0.7.dist-info/METADATA,sha256=
|
|
149
|
-
httomo_backends-0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
150
|
-
httomo_backends-0.7.dist-info/top_level.txt,sha256=v4x8d4CeEyMwo8QoqIvL_p-WoXAVD1bVnASPIrLjSTg,16
|
|
151
|
-
httomo_backends-0.7.dist-info/RECORD,,
|
|
147
|
+
httomo_backends-0.7.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
148
|
+
httomo_backends-0.7.2.dist-info/METADATA,sha256=F0PpEdrCwHMrpibOI1lUZczembzVccVwj_-j1mtbu4E,2272
|
|
149
|
+
httomo_backends-0.7.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
150
|
+
httomo_backends-0.7.2.dist-info/top_level.txt,sha256=v4x8d4CeEyMwo8QoqIvL_p-WoXAVD1bVnASPIrLjSTg,16
|
|
151
|
+
httomo_backends-0.7.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|