Skip to content

训练时报错TypeError: 'NoneType' object is not iterable #9

@18205698790

Description

@18205698790

您好,我是一个刚学习深度学习不久的萌新。我在用pycharm进行训练的时候出现了TypeError: 'NoneType' object is not iterable问题,我使用的数据是您的那个口罩佩戴检测数据集。我的eus.yaml文件里的设置是:nc: 2,names: ["FaceMask","NoMask"]。我在运行train.py时的超参设置为--batch-size 4 --img 896 896 --data eus.yaml --cfg models/eus/yolov4-p7.yaml --weights 'pretrain/yolov4-p7.pt' --sync-bn --device 0 --name yolov4-p7。希望您在百忙之中抽出一点时间来解答一下我的疑惑,谢谢您!

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