Skip to content

ValueError: Expected 2D array, got 1D array instead: #21

@deekshithmr95

Description

@deekshithmr95

I'm running test-object-detector.py on Windows 10 64bit with python 3.6.3
(added print statement's missing parenthesis)

python successfully downloaded and extracted 'UIUC Image Database for Car Detection'
but i'm getting error here

ValueError: Expected 2D array, got 1D array instead:
array=[].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
Traceback (most recent call last):

how to resolve this issue?

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