TRI-ML / dd3d

Official PyTorch implementation of DD3D: Is Pseudo-Lidar needed for Monocular 3D Object detection? (ICCV 2021), Dennis Park*, Rares Ambrus*, Vitor Guizilini, Jie Li, and Adrien Gaidon.
MIT License
451 stars 74 forks source link

What meaning of @ in defaults.yaml? #53

Open chensi1122 opened 1 month ago

chensi1122 commented 1 month ago

Can someone tell me the meaning of @ in defaults.yaml? I can't found its role. Thanks!

n00b0dyy commented 1 month ago

The @ sign is used to indicate specific configuration sections to be loaded or referenced from other parts of the system. This means that a particular key or section is assigned to a specific module or component.

e.g. train_datasets@DATASETS.TRAIN: means that train_datasets should be configured according to the settings defined in DATASETS.TRAIN.

The @ sign allows you to configure your system hierarchically and modularly. For example, you can have a general configuration in one file and detailed, case-specific configurations in others, and combine them using @.

You could say that it's such a more advanced key-value separator, although not exactly.