Skip to content

Fix: align real image and label transforms in DiffSynth (3D)#3

Open
mahmoud1yaser wants to merge 1 commit intoHuXiaoling:mainfrom
mahmoud1yaser:fix/diffsynth-align-3d
Open

Fix: align real image and label transforms in DiffSynth (3D)#3
mahmoud1yaser wants to merge 1 commit intoHuXiaoling:mainfrom
mahmoud1yaser:fix/diffsynth-align-3d

Conversation

@mahmoud1yaser
Copy link
Copy Markdown

This PR fixes a bug in DiffSynth where the real image and label were incorrectly deformed using a transformation sampled from the synthetic domain (slab). This caused misalignment in the real image-label pair, especially in 3D experiments.

Changes:

  • Sample a dedicated transform pipeline (make_final) for the real data using img.
  • Pass [img, lab] to .deform() to apply the same geometric transform to both.

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.

1 participant