Closed anilrgukt closed 2 years ago
And some seed values result in ValueError: Cannot generate mask to satisfy accel=8
from sigpy/mri/samp.py
library. Is there a right parameter configuration?
thanks, Anil
Hi Anil, thanks for these questions. There is an ongoing issue in the meddlr repository (one of the dependencies) that notes the Poisson Disc generation in sigpy can hang. We are working on finding a long-term solution.
For now, I would recommend downloading the masks from Google drive and moving them to the appropriate cache folder. We will add a utility for doing this in our upcoming minor release.
If you would like to precompute the masks yourself, I would recommend setting seed=None
. It may also be useful to increase the num_workers
count to speed up the computation.
zarr library is not able to open the precomputed masks
import zarr
import os
PATH='./precomputed-masks/N=100000-acc=None-mode=2D-seed=None--PoissonDiskMaskFunc-accelerations=(8,)-calib_size=(24, 24)-max_attempts=5-crop_corner=True.zarr'
if os.path.exists(PATH):
f = zarr.open(PATH,mode="r")
results in
zarr.errors.PathNotFoundError: nothing found at path ''
I tried with absolute path as well and running into the same error. I tried f = zarr.open(path=PATH, mode="r")
. Is there anything that I am missing?
thanks, Anil
Thanks for the catch - just fixed the file and it works with the code above
Closing for now but feel free to open this again.
You can use the below code to reproduce it.