-
Hello, foo:
_target_ : src.transforms.transforms_composer.TransformsComposer
cfg :
image_size : 1024
HorizontalFlip:
apply : True
transform :
_target_ : albumentations.HorizontalFlip
p : 0.5 When I call hydra.utils.instantiate(foo) I get the following error Top level config has to be OmegaConf DictConfig, plain dict, or a Structured Config class or instance. Can anyone please tell me, what I am doing wrong? The object TransformsComposer takes keyword argument cfg and I expect it to be some kind of dictionary... |
Beta Was this translation helpful? Give feedback.
Answered by
Jasha10
Apr 8, 2022
Replies: 1 comment 1 reply
-
Hi @kuntiik, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kuntiik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @kuntiik,
I don't see anything wrong with that config.
Please give a reproducible example so we can assist with debugging.