I try to run detectron2. In the examples in the documentation pages, for example this page, the config file is a yaml file. A lot of the models provided in this package are given (from the github code project) as py config files. For example, in this link is the list of the models, but these models that I want to use are py config files. I don't succeed to run detectron2 with any of the models that are in py file.
It seems that the code doesn't build to accept the py file config, because when I run the code with a py config, the failure is in this line:
loaded_cfg = self.load_yaml_with_base(cfg_filename, allow_unsafe=allow_unsafe)
line 46 in the file detectron2/detectron2/config/config.py
.
How can I run the model that is in the py file?