Skip to content

Latest commit

 

History

History

configs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

How to write and import your configs

Author: QIU Tian
Affiliation: Zhejiang University
English | 简体中文

If needed, refer to _demo_.py and write your arguments in a config file (.py).

Starting from v0.2.0, if you want to use your config file, set --config / -c to your config file path, like configs/_demo_.py.

For example,

python main.py --config configs/_demo_.py

or

python main.py -c configs/_demo_.py

Note that --config / -c supports any file system path, such as configs/_demo_.py, D:\\QTClassification\\configs\\_demo_.py, ../../another_project/cfg.py.

Then, the config arguments override or merge with the command-line arguments args in main.py.

Starting from v0.7.0, command-line arguments after --config xxx / -c xxx override the config arguments if the name is duplicated.