Update parser.py
parent
dca6f6a662
commit
a3477f59d7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue