cabouman / svmbir

Fast code for parallel or fan beam tomographic reconstruction
BSD 3-Clause "New" or "Revised" License
19 stars 8 forks source link

Memory bug #77

Closed cabouman closed 3 years ago

cabouman commented 3 years ago

Venkat is having a problem with a malloc error. See program failure below.

Warning in /home/.cache/svmbir/parbeam/par/object.reconparams: InitImageValue should be positive. Reverting to default. RECONSTRUCTION/PRIOR PARAMETERS:

Reading system matrix... ==> malloc() error Traceback (most recent call last): File "compareMBIR.py", line 94, in rec_mbir_sv = np.float32(svmbir.recon(proj,theta, weights=wt_data/wt_data.mean(), num_threads=40,center_offset=0, max_iterations=25,positivity=False,stop_threshold=stop_thresh,roi_radius=1024,sigma_x = MRF_SIGMA, T = 0.001)) File "/home/svmbir/svmbir/svmbir.py", line 454, in recon imgparams['Nx'], imgparams['Ny'], imgparams['Nz']) File "/home/svmbir/svmbir/_utils.py", line 144, in read_recon_openmbir with open(fname, 'rb') as fileID: FileNotFoundError: [Errno 2] No such file or directory: '/home/.cache/svmbir/parbeam/recon/object_slice0000.2Dimgdata’

sjkisner commented 3 years ago

Ima close this because I believe the bug was already fixed. The error tells me the version of the C-code is prior to fixing the overflow problem in allocate.c back in August.