Traceback (most recent call last): File "D:\瞳行AI\main.py", line 47, in <module> main(opt) File "D:\瞳行AI\main.py", line 30, in main main_window = MainWindow(opt) File "D:\瞳行AI\UILib\MainWindow.py", line 8, in __init__ super(MainWindow, self).__init__(opt) File "D:\瞳行AI\UILib\Layout.py", line 39, in __init__ self.updateCamInfo() File "D:\瞳行AI\UILib\Layout.py", line 189, in updateCamInfo self.processor = MainProcessor( File "D:\瞳行AI\processor\MainProcessor.py", line 37, in __init__ from .AIDetector_pytorch import Detector as FaceTracker File "D:\瞳行AI\processor\AIDetector_pytorch.py", line 6, in <module> from .BaseDetector import baseDet File "D:\瞳行AI\processor\BaseDetector.py", line 1, in <module> from .tracker_deep import update_tracker File "D:\瞳行AI\processor\tracker_deep.py", line 8, in <module> cfg.merge_from_file("deep_sort/configs/deep_sort.yaml") File "D:\瞳行AI\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' 进程已结束,退出代码1
时间: 2023-09-17 11:14:23 浏览: 93
linux 下 pip3 报错“ File “/usr/bin/pip3”, line 9, in from pip import mainImportError: canno”处理
5星 · 资源好评率100%
这个错误提示是 Python 中的 YAML 库的问题,可能是因为该库的版本过低或者使用方式不正确导致的。你可以尝试升级 PyYAML 库的版本,或者使用 `yaml.safe_load()` 方法代替 `yaml.load()` 方法。例如:
```python
import yaml
with open("config.yaml", "r") as f:
data = yaml.safe_load(f)
```
另外,你也可以检查一下 `deep_sort.yaml` 配置文件存在,以及该文件是否符合 YAML 的语法规范。
阅读全文