Update parser.py

pull/28/head
sxj731533730 2022-05-04 15:24:13 +08:00 committed by GitHub
parent dca6f6a662
commit a3477f59d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()