8000 Path issues on windows · Issue #9 · tue-mps/eomt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Path issues on windows #9

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

Closed
afaenger opened this issue May 9, 2025 · 1 comment
Closed

Path issues on windows #9

afaenger opened this issue May 9, 2025 · 1 comment

Comments

@afaenger
Copy link
afaenger commented May 9, 2025

In dataset.py init() file paths inside ZIP archives are created with the system specific path separator. On windows this will be \. However, this doesn't seem to work and the files are not found.

As a workaround, the separator should be replaced with /.
E.g. at least 3 lines should be adjusted

self.imgs.append(str(img_path).replace("\\", "/")) https://github.com/tue-mps/eomt/blob/87e6afc4cb6413fe555197c154ed33c7f2afdb58/datasets/dataset.py#L165

target_instance_filename = target_instance_filename.replace("\\", "/") https://github.com/tue-mps/eomt/blob/87e6afc4cb6413fe555197c154ed33c7f2afdb58/datasets/dataset.py#L124

target_filename = target_filename.replace("\\", "/") https://github.com/tue-mps/eomt/blob/87e6afc4cb6413fe555197c154ed33c7f2afdb58/datasets/dataset.py#L145

@tommiekerssies
Copy link
Collaborator

Hi @afaenger, thanks for pointing this out! Should have been resolved in the latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0