Merge a3477f59d7 into 2644c110ef
				
					
				
			
						commit
						031dbefe51
					
				|  | @ -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
	
	 sxj731533730
						sxj731533730