Skip to content

How should I list the augmentations in the config. #1234

@bw4sz

Description

@bw4sz

I'm not sure the way I should list augmentations in the new structures.

 m.config["train"]["augmentations"] = [
      {"RandomResizedCrop": {"size": (800, 800), "scale": (0.5, 1.0), "p": 0.3}},
      {"Rotate": {"degrees": 15, "p": 0.5}},
      {"HorizontalFlip": {"p": 0.5}},
      {"VerticalFlip": {"p": 0.3}},
      {"RandomBrightnessContrast": {"brightness": 0.2, "contrast": 0.2, "p": 0.5}},
      {"HueSaturationValue": {"hue": 0.1, "saturation": 0.1, "p": 0.3}},
      {"ZoomBlur": {"max_factor": (1.0, 1.03), "step_factor": (0.01, 0.02), "p": 0.3}},
  ]

but that yields.

omegaconf.errors.ValidationError: Cannot convert 'dict' to string: '{'RandomResizedCrop': {'size': (800, 800), 'scale': (0.5, 1.0), 'p': 0.3}}'
    full_key: train.augmentations[0]
    reference_type=Optional[List[str]]
    object_type=list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions