From 9763617d84fc7765d90776ffdcec000c0a6150bc Mon Sep 17 00:00:00 2001 From: Don Yin Date: Tue, 20 Oct 2026 21:58:25 +0100 Subject: [PATCH] Fix intensity scaling range in MAISI VAE transform RandScaleIntensityd scales by (1 + factor), so factors=(0.9, 1.1) multiplied images by 1.9-2.1. Use (-0.1, 0.1) for a 0.9-1.1x range. Signed-off-by: Don Yin --- generation/maisi/scripts/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation/maisi/scripts/transforms.py b/generation/maisi/scripts/transforms.py index fb784f1871..2928cb860c 100644 --- a/generation/maisi/scripts/transforms.py +++ b/generation/maisi/scripts/transforms.py @@ -179,7 +179,7 @@ def define_vae_transform( for axes in [(0, 1), (1, 2), (0, 2)] ] + [ - RandScaleIntensityd(keys=image_keys, allow_missing_keys=True, prob=0.3, factors=(0.9, 1.1)), + RandScaleIntensityd(keys=image_keys, allow_missing_keys=True, prob=0.3, factors=(-0.1, 0.1)), RandShiftIntensityd(keys=image_keys, allow_missing_keys=True, prob=0.3, offsets=0.05), ] )