Skip to content

TypeError: img should be CV Image. Got <class 'PIL.Image.Image'> #5

@Sudhakar17

Description

@Sudhakar17

I am using data loader from pytorch and data transform using your code. I am getting this error, "TypeError: img should be CV Image. Got <class 'PIL.Image.Image'>"

How to feed cvImage instead of PIL image to the model? Is there any other way?

Pytorch Version : 1.1
Windows 10

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