Open sakura-ai opened 2 years ago
File "C:\Users\xx\PycharmProjects\try\Yolov5-Deepsort-main\deep_sort\utils\parser.py", line 23, in merge_from_file self.update(yaml.load(fo.read())) TypeError: load() missing 1 required positional argument: 'Loader'
请问提示load()函数调用的时候缺少参数是怎么回事呢?
self.update(float(fo.read(),Loader=yaml.SafeLoader)),加上缺少的参数就好了
您好,修改后仍然报错:typeError: float() takes no keyword arguments
you must change version of yaml to 5.4.1
change load() to safe_load()
File "C:\Users\xx\PycharmProjects\try\Yolov5-Deepsort-main\deep_sort\utils\parser.py", line 23, in merge_from_file self.update(yaml.load(fo.read())) TypeError: load() missing 1 required positional argument: 'Loader'
请问提示load()函数调用的时候缺少参数是怎么回事呢?