Skip to content

AttributeError: 'YamlParser' object has no attribute 'YOLOV3' #150

@tosonw

Description

@tosonw

你好,我这运行yolov3_deepsort.py时保错:
Traceback (most recent call last):
File "/e/myl/tracker/deep_sort_pytorch_ZQPei/yolov3_deepsort.py", line 158, in
with VideoTracker(cfg, args, video_path=args.VIDEO_PATH) as vdo_trk:
File "/e/myl/tracker/deep_sort_pytorch_ZQPei/yolov3_deepsort.py", line 37, in init
self.detector = build_detector(cfg, use_cuda=use_cuda)
File "/e/myl/tracker/deep_sort_pytorch_ZQPei/detector/init.py", line 8, in build_detector
return YOLOv3(cfg.YOLOV3.CFG, cfg.YOLOV3.WEIGHT, cfg.YOLOV3.CLASS_NAMES,
AttributeError: 'YamlParser' object has no attribute 'YOLOV3'

我debug进去看到导入的数据都是正常的,里面有YOLOV3,请问这是什么问题??
随后我修改:
cfg = get_config()
cfg.merge_from_file(args.config_detection)
cfg.merge_from_file(args.config_deepsort)
将args.config_detection放入get_config中,然后又会报错AttributeError: 'YamlParser' object has no attribute 'DEEPSORT',请问这里需要怎么修改??我实在修改不正确了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions