pull/28/merge
sxj731533730 2025-01-02 17:56:28 +08:00 committed by GitHub
commit 031dbefe51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class YamlParser(edict):
def merge_from_file(self, config_file):
with open(config_file, 'r') as fo:
self.update(yaml.load(fo.read()))
self.update(yaml.load(fo.read(), Loader=yaml.CLoader))
def merge_from_dict(self, config_dict):
@ -35,4 +35,4 @@ if __name__ == "__main__":
cfg = YamlParser(config_file="../configs/yolov3.yaml")
cfg.merge_from_file("../configs/deep_sort.yaml")
import ipdb; ipdb.set_trace()
import ipdb; ipdb.set_trace()