You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am training a model for image segmentation. Using a custom transform pipeline, I found that clearing the background using a ratio with a Gaussian blurred image and histogram equalisation helps model convergence. However, when I used Monai compose to do the same, I ran into the issue that the transforms of one image seemed to affect other images. This is how I write the Compose:
Which is odd, because it seems that the transformations on one image, also happen on other image and then the values seems to accumulate and get out of hand.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Install '....'
Run commands '....'
Expected behavior
I would like the transformations to be calculated everytime de novo or to be calculated once and not to accumulate spilling over other images.
Environment
Ensuring you use the relevant python executable, please paste the output of:
Describe the bug
I am training a model for image segmentation. Using a custom transform pipeline, I found that clearing the background using a ratio with a Gaussian blurred image and histogram equalisation helps model convergence. However, when I used Monai compose to do the same, I ran into the issue that the transforms of one image seemed to affect other images. This is how I write the
Compose
:And these are the individual compose:
Note that the
ComposeInspect
is there for debugging purposes. With this code, what I see is something like:Which is odd, because it seems that the transformations on one image, also happen on other image and then the values seems to accumulate and get out of hand.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would like the transformations to be calculated everytime de novo or to be calculated once and not to accumulate spilling over other images.
Environment
Ensuring you use the relevant python executable, please paste the output of:
Additional context
Not required
Any help will be more than welcome.
The text was updated successfully, but these errors were encountered: