I have a general camera config yaml, where the only thing that usually changes between specific cameras is the IP address. Some fields (in the following example fps
) remain the same.
Can I do something like this in Hydra/OmegaConf?
any_camera.yaml
any_camera:
stream_url: ???
fps: 25
all_cameras.yaml
all_cameras:
cam1:
@{any_camera}
stream_url: rtsp://10.0.0.1
cam2:
@{any_camera}
stream_url: rtsp://10.0.0.2
I can see two potential options:
Basically you could have cam1 and cam2 both extend from any_camera and have specific overrides. Then in all_cameras.yaml, you can select multiple config groups to have the config list.