Skip to content

Commit

Permalink
removed rfft2d init from GMM
Browse files Browse the repository at this point in the history
  • Loading branch information
snehilchatterjee committed Oct 14, 2024
1 parent fa2fb17 commit 2c9e7c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lightly/transforms/gaussian_mixture_masks_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from torch import Tensor

from lightly.transforms.irfft2d_transform import IRFFT2DTransform
from lightly.transforms.rfft2d_transform import RFFT2DTransform


class GaussianMixtureMask:
Expand All @@ -29,9 +28,6 @@ def __init__(
num_gaussians: Number of Gaussian kernels to generate in the mixture mask.
std_range: Tuple containing the minimum and maximum standard deviation for the Gaussians.
"""

self.rfft2d_transform = RFFT2DTransform()

self.num_gaussians = num_gaussians
self.std_range = std_range

Expand Down
2 changes: 1 addition & 1 deletion tests/transforms/test_gaussian_mixture_masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

def test() -> None:
transform = GaussianMixtureMask(20, (10, 15))
image = torch.rand(3, 32, 32)
image = torch.rand(3, 32, 17)
output = transform(image)
assert output.shape == (3, 32, 32)

0 comments on commit 2c9e7c8

Please sign in to comment.