Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What meaning of @ in defaults.yaml? #53

Open
chensi1122 opened this issue May 14, 2024 · 1 comment
Open

What meaning of @ in defaults.yaml? #53

chensi1122 opened this issue May 14, 2024 · 1 comment

Comments

@chensi1122
Copy link

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

@n00b0dyy
Copy link

n00b0dyy commented May 14, 2024

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.
[email protected]: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants