Skip to content

Revert "BUG: Registration interface failed multi-modal" #1181

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

Merged
merged 1 commit into from
Aug 12, 2015

Conversation

satra
Copy link
Member

@satra satra commented Aug 12, 2015

Reverts #1176

@hjmjohnson, @chrisfilo - reverting this change - breaks nipype.

satra added a commit that referenced this pull request Aug 12, 2015
…tration

Revert "BUG: Registration interface failed multi-modal"
@satra satra merged commit 31d999f into master Aug 12, 2015
@satra
Copy link
Member Author

satra commented Aug 12, 2015

@hjmjohnson - please test both the single modality and multimodal cases (and command lines) when you resubmit. also the doctests should be updated for the single modality case.

@satra satra deleted the revert-1176-FixMultiModalAntsRegistration branch August 12, 2015 21:06
@satra
Copy link
Member Author

satra commented Aug 12, 2015

also i just got this error - should also be fixed in an update.

restore-state option is mutually exclusive with initial-moving-transform & initial-fixed-transform options.

@hjmjohnson
Copy link
Contributor

@satra @chrisfilo

reg1 - reg4 were all single modal tests. When a list is specified in a single modal test, only the first element of the list is used (as driven by the metric).

reg5 was the multi-modal test case. NOTE: Even in reg5 test, the first stage is single modal (and only uses the first image) and the second stage is where multi-modal information is used.

NOTE: The multi-modal imaging test was originally written by @chrisfilo back in 2012
18cb533#diff-6e6dd1764769fff7edcdb5a00c00b1f8R91

We were trying to make the minimum changes necessary to fix the identified bug.

I'll make another patch set that uses the simpler notation in the base class, and the for reg5 demonstrates the multi-modal fixed and moving images.

@hjmjohnson
Copy link
Contributor

@satra RE: "restore-state option is mutually exclusive with initial-moving-transform & initial-fixed-transform options."

This is true. You can not provide both restore-state and "initial-moving-transform or inital-fixed-transform"

Did you get that error in the doc-tests or in an external pipeline usage?

@chrisgorgo
Copy link
Member

@hjmjohnson https://github.com/hjmjohnson I pledge guilty as charged! I
have corrected the tests in a recent PR so now they all are unimodal (since
this is the only way ANTS works correctly right now). When you fix the
multimodal support please add some multimodal tests. Tanhks!

On Fri, Aug 14, 2015 at 11:28 AM, Hans Johnson notifications@github.com
wrote:

@satra https://github.com/satra RE: "restore-state option is mutually
exclusive with initial-moving-transform & initial-fixed-transform options."

This is true. You can not provide both restore-state and
"initial-moving-transform or inital-fixed-transform"

Did you get that error in the doc-tests or in an external pipeline usage?


Reply to this email directly or view it on GitHub
#1181 (comment).

@hjmjohnson
Copy link
Contributor

@satra @chrisfilo I'm struggling to figure out how the multi-modal case is wrong. We are using the codebase before the reversion, and it seems to be working correctly for us for the 100's of cases that we have run.

Can you please elaborate on how it is broken?

Thanks,
Hans

@chrisgorgo
Copy link
Member

It breaks the unimodal cases (I expect you did not test those). Try running
doctests from current master (the ones I made for unimodal cases) on the
codebase from before reversal. You should get an error somewhere here:
07ec0cc#diff-aad5256804f940ebdb8e591a59e282e6L509

I hope this helps!

On Fri, Aug 14, 2015 at 11:37 AM, Hans Johnson notifications@github.com
wrote:

@satra https://github.com/satra @chrisfilo
https://github.com/chrisfilo I'm struggling to figure out how the
multi-modal case is wrong. We are using the codebase before the reversion,
and it seems to be working correctly for us for the 100's of cases that we
have run.

Can you please elaborate on how it is broken?

Thanks,
Hans


Reply to this email directly or view it on GitHub
#1181 (comment).

@hjmjohnson
Copy link
Contributor

Before submitting PR I ran the following:

python setup.py install; make specs; make check-before-commit

There were no errors. Are these the doctest you are referring to?

@satra
Copy link
Member Author

satra commented Aug 14, 2015

@hjmjohnson - the doctests pass because the single modality case was not considered. if you remove the second input from the fixed and moving images, the doctests start failing. i.e a user with the single case would suddenly have run into errors with the change. that's why chris, refined the tests to focus on the single input scenario.

@hjmjohnson
Copy link
Contributor

@satra @chrisfilo
OHH! I see now! The failure is when the fixed and moving images specified are NOT provided as a list.

(I was confused because we run uni-modal registrations all the time successfully, but we alway pass them in as lists with single elements)

I now know what to fix! :) I'll work on it right away. It should be an easy fix.

@chrisgorgo
Copy link
Member

On Fri, Aug 14, 2015 at 1:30 PM, Hans Johnson notifications@github.com
wrote:

@satra https://github.com/satra @chrisfilo
https://github.com/chrisfilo
OHH! I see now! The failure is when the fixed and moving images specified
are NOT provided as a list.

(I was confused because we run uni-modal registrations all the time
successfully, but we alway pass them in as lists with single elements)

This is weird - InputMultiPath should've turned the a string into a single
element list automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants