Skip to content

AttributeError: 'NoneType' object has no attribute 'shape' #3

Description

@cespedesk

Hi, I love your video,It very easy to fallow.
I am geting this error
AttributeError Traceback (most recent call last)
in
8 img = cv2.imread('train/' + row['ImageID'])
9 #print(img) #none
---> 10 height, width = img.shape[:2]
11 x1 = int(row['XMin'] * width)
12 x2 = int(row['XMax'] * width)

AttributeError: 'NoneType' object has no attribute 'shape'

I have look for solutions but I cant make it run. Can you help me?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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