Skip to content

torchvision.io.read_image{,_async}(string filename, ...) prevents subsequent opening of the file for reading #1494

@hiyuh

Description

@hiyuh

Describe the bug

  • SSIA.

To Reproduce

  • try to open an image file while processing torchvision.io.read_image{,_async}(string filename, ...).

Expected behavior

Please complete the following information:

  • OS: at least on Windows
  • Package: TorchVision
  • Version: 0.105.1 or earlier

Additional context

  • a possible workaround i can think of: use torchvision.io.read_image{,_async}(Stream stream, ...) w/ correctly opened stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions