Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyiasemis committed Jun 5, 2024
1 parent 1cbbb45 commit bcd58fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions direct/data/datasets_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from __future__ import annotations

from dataclasses import dataclass
from typing import List, Optional
from typing import Optional

from omegaconf import MISSING

Expand Down Expand Up @@ -42,10 +42,10 @@ class SensitivityMapEstimationTransformConfig(BaseConfig):

@dataclass
class AugmentationTransformConfig(BaseConfig):
rescale: Optional[tuple[int, ...]] = (None,)
rescale_mode: Optional[RescaleMode] = (RescaleMode.NEAREST,)
rescale_2d_if_3d: Optional[bool] = (False,)
pad: Optional[tuple[int, ...]] = (None,)
rescale: Optional[tuple[int, ...]] = None
rescale_mode: Optional[RescaleMode] = RescaleMode.NEAREST
rescale_2d_if_3d: Optional[bool] = False
pad: Optional[tuple[int, ...]] = None


@dataclass
Expand Down
3 changes: 2 additions & 1 deletion tests/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@
)
from direct.launch import launch
from direct.train import setup_train
from direct.types import MaskFuncMode


def create_test_transform_cfg(transforms_type):
transforms_config = TransformsConfig(
normalization=NormalizationTransformConfig(scaling_key="masked_kspace"),
masking=MaskingConfig(name="FastMRIRandom"),
masking=MaskingConfig(name="FastMRIRandom", mode=MaskFuncMode.STATIC),
cropping=CropTransformConfig(crop=(32, 32)),
sensitivity_map_estimation=SensitivityMapEstimationTransformConfig(estimate_sensitivity_maps=True),
transforms_type=transforms_type,
Expand Down

0 comments on commit bcd58fa

Please sign in to comment.