I am trying to instantiate objects with hydra, I have a class torchio.transforms.RemapLabels
that I am using in my config file:
_target_: torchio.transforms.RemapLabels
The problem is that torchio.transforms.RemapLabels
takes dictionary elements as input, how do I pass those from my hydra config file? (config.yaml
)?
I am getting error when instantiating:
TypeError: Error instantiating 'torchio.transforms.preprocessing.label.remap_labels.RemapLabels' : __init__() missing 1 required positional argument: 'remapping'
example usage of remap label:
transform = torchio.RemapLabels({2:1, 4:3, 6:5, 8:7})