Skip to content

训练时报错:AttributeError: 'NoneType' object has no attribute 'shape' #23

@Wangyy-moya

Description

@Wangyy-moya

训练时,报下面的错误,请问怎么解决?

Traceback (most recent call last):
File "train.py", line 174, in
main()
File "train.py", line 170, in main
train.start_train()
File "train.py", line 148, in start_train
X_train, X_test, y_train, y_test=self.load_data()
File "train.py", line 55, in load_data
_, w, h = img.shape[::-1]
AttributeError: 'NoneType' object has no attribute 'shape'

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