-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port SFM model back from the legacy branch #4
Comments
Isotropic fit can be used for single-shell data but for multi-shell data, will need to use exponential isotropic fit. Dipy should have some code for detecting whether data is single or multi-shell data. @arokem mentioned it's being used in the DKI model to test whether the data is eligible. |
This is the function that checks if data are multi-b: https://github.com/dipy/dipy/blob/be956a529465b28085f8fc435a756947ddee1c89/dipy/core/gradients.py#L825 |
Reporting some weirdness with the SFM model currently: If including a mask, run into memory issues, even on the small IXI dataset:
If no mask, run into some looping issues.
|
What's the shape of the mask? Shape of the data? |
Mask is |
That makes sense. Do you happen to have some information on which line raises that memory error? Is it in this codebase, or coming from deeper in DIPY? |
For the looping issue, could you please put in a breakpoint before this line?
What is |
Within this codebase. Double-checking to see whether I defined the mask properly in |
|
I worry that it somehow become a 1-dimensional array (i.e., data from a single voxel), which often needs special handling, because it no longer has the spatial dimensions. |
I would put in a breakpoint and do a sanity check on the shape and dtype of the data and mask variables right before that memory error. Assuming the mask and data are what you put in there, this code should be fine. But I wonder whether something flattens the data or the mask into a 2D array, before you get to that line, or something like that. |
cf. nipreps/eddymotion#15.
The text was updated successfully, but these errors were encountered: