Jingkang50 / OpenOOD

Benchmarking Generalized Out-of-Distribution Detection
MIT License
858 stars 108 forks source link

what is the meaning of Config #126

Closed yangengineering closed 1 year ago

yangengineering commented 1 year ago

Config is a class , but what is it used to do. And what is the meaning of the code which is "config = [Config(path) for path in opt.config] "

JediWarriorZou commented 1 year ago

Briefly speaking, Config is used to upload configurations from YAML files. A object of Config is similar to a dictionary in which configurations of components mentioned in configs are stored is similar to a dictionary. As for "config = [Config(path) for path in opt.config]", it generates a list containing several objects of Config according to arguments.