Skip to content

'LoadImages' path handling appears to be broken #2618

@maxupp

Description

@maxupp

🐛 Bug

Currently instantiating a LoadImages instance fails because the computation of the absolute path results in a faulty path.
image

I'm on the current master.

To Reproduce (REQUIRED)

Try to load any filepath.

dest = r'E:\Datasets\mavic_material\detected.mp4'

build dataset from source

dataset = LoadImages(source, img_size=detector.imgsz, stride=detector.stride)

Output:

  File "../yolov5\utils\datasets.py", line 132, in __init__
    raise Exception(f'ERROR: {p} does not exist')
Exception: ERROR: E:\Repos\snakefly\droppings\"E:\Datasets\mavic_material\videos\DJI_0370.MP4" does not exist

Expected behavior

The absolute path should be the correct filepath.

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