Skip to content

Commit 20aa7fd

Browse files
committed
make it 2D/3D compartible, rm a outdated comment
Signed-off-by: Can-Zhao <[email protected]>
1 parent 14664e8 commit 20aa7fd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

monai/networks/schedulers/rectified_flow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def add_noise(self, original_samples: torch.Tensor, noise: torch.Tensor, timeste
179179
timepoints = 1 - timepoints # [1,1/1000]
180180

181181
# expand timepoint to noise shape
182-
# Just in case timepoints is not 1D or 2D tensor, make it to be same shape as noise
183182
if len(noise.shape) == 5:
184183
timepoints = timepoints.unsqueeze(1).unsqueeze(1).unsqueeze(1).unsqueeze(1)
185184
timepoints = timepoints.repeat(1, noise.shape[1], noise.shape[2], noise.shape[3], noise.shape[4])

0 commit comments

Comments
 (0)