Skip to content
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

Deepro dev #2

Merged
merged 7 commits into from
Aug 26, 2022
Merged

Deepro dev #2

merged 7 commits into from
Aug 26, 2022

Conversation

TerminalVelocityDPro
Copy link
Owner

Fixes for motion corruption so that it's properly working within meddlr. Earlier, it turns out motion corruption was just obliterating the image instead of properly motion corrupting it. The specific changes that fixed it are in transform.py - essentially, conversion of image into something that the motion corruption method can handle was missing as well as proper conversion of the image into the kspace using SenseModel and permute. With these fixes, motion corruption does seem to be working properly now.

meddlr/data/transforms/transform.py Show resolved Hide resolved
meddlr/data/transforms/transform.py Outdated Show resolved Hide resolved
meddlr/data/transforms/transform.py Outdated Show resolved Hide resolved
@@ -218,7 +218,7 @@ def eval(cfg, args, model, weights_basename, criterion, best_value):
and angle is None
and translation is None
and nshots is None
and trajectory == "None"
and trajectory == "none"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are all of these fields gated by an if statemnt? are you trying to set default values?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, just setting default values here.

tools/eval_net.py Outdated Show resolved Hide resolved
tools/eval_net.py Outdated Show resolved Hide resolved
tools/eval_net.py Outdated Show resolved Hide resolved
@TerminalVelocityDPro TerminalVelocityDPro merged commit be8fe31 into 2D-motion-corruption-main Aug 26, 2022
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