Shortcuts

read_base

class mmengine.config.read_base[源代码]

Context manager to mark the base config.

The pure Python-style configuration file allows you to use the import syntax. However, it is important to note that you need to import the base configuration file within the context of read_base, and import other dependencies outside of it.

You can see more usage of Python-style configuration in the tutorial