Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'LoadImages' path handling appears to be broken #2618

Closed
maxupp opened this issue Mar 26, 2021 · 2 comments
Closed

'LoadImages' path handling appears to be broken #2618

maxupp opened this issue Mar 26, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@maxupp
Copy link
Contributor

maxupp commented Mar 26, 2021

🐛 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.

@maxupp maxupp added the bug Something isn't working label Mar 26, 2021
@maxupp
Copy link
Contributor Author

maxupp commented Mar 26, 2021

My mistake, had an extra pair of quotes from Windows' beloved "copy as path" function.

@maxupp maxupp closed this as completed Mar 26, 2021
@glenn-jocher
Copy link
Member

@maxupp great, glad everything is working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants