-
Notifications
You must be signed in to change notification settings - Fork 6
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
wrapper always keeps propagate_angle on DeepSlice #38
Comments
I probably let it all the time because there's no support for different angles per slice in ABBA anyway. What's the error message ? Do you think it's dataset dependent ? Cheers |
Also "Allow change of atlas slicing angle" is not related to angle propagation. Angle propagation enforces the same slicing angles for all sections - which is what happens in ABBA anyway. Setting a similar angle for all slices can be performed at the DeepSlice (or not, but I do not allow this yet), and is performed in any case at the ABBA level here. |
Oh i understand! Thanks. Sorry for the dumb mistake
I tried to use the dataset prepared by ABBA. from DeepSlice import DSModel
folderpath = '/tmp/deepslice13250635722828928472'
Model = DSModel("mouse")
Model.predict(folderpath, ensemble=True, section_numbers=True)
Model.propagate_angles() and it fails with
Since I'm just giving a QuickNII folder as an input i don't think it's a formatting/ABBA problem.
pip list | grep DeepSlice
DeepSlice 1.1.5
No, I'm currently on Linux |
Just one thought: can you flip the indices of the files (if you are using indices) ? cf PolarBean/DeepSlice#43 and PolarBean/DeepSlice#61 |
it didn't even work when I aligned only one slice (if angle propagation even makes sense). i could not find this issue :\ |
It the problem is well contained into DeepSlice, maybe you can post the issue on the DeepSlice repo ? |
I tried the same code without the EDIT: A quick and dirty way of fixing this would be checking what ABBA calls for DeepSlice and changing the following lines:
|
Ah, is the problem happening when there's only one slice ? In this case I need to set propagate angle to false rather in this repo: |
I think so, as there is nothing to propagate to, though I will try with 2 slices from the same animal and come back to you. |
Indeed the single slice causes issue. One needs to set propagate_angles to false and enforce_index_order to false as well. The same is true when there are only two slices selected. However the fix has to be in ABBA. See transfered issue: |
See relevant demo code: https://github.com/BIOP/ijl-utilities-wrappers/blob/8e603661470651607de4b0024a95dec7b7772377/src/test/java/DemoDeepSlice.java Testing deepslice with 10 slices, 1 or 2 |
for some reasons, in my environment, deepslice fails on
Model.propagate_angles()
. Ignoring this problem, i wanted to disable it from ABBA, however it seemed like it keept trying to modify the angle.From logs i see that whether i tick or not the "Allow change of atlas slicing angle" checkbox, it always passes the
--propagate_angles
option todeepslice_cli_v1.1.5.1.py
The text was updated successfully, but these errors were encountered: