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

Path separator for anomalib-1.0.0 on Windows #1849

Closed
mitanihiroshi opened this issue Mar 13, 2024 · 1 comment
Closed

Path separator for anomalib-1.0.0 on Windows #1849

mitanihiroshi opened this issue Mar 13, 2024 · 1 comment

Comments

@mitanihiroshi
Copy link

anomalib-1.0.0\src\anomalib\data\utils\image.py-diff

10a11

import os
439d439
<
444c444,447
< file_path = Path("/".join(str(file_path).split("/")[2:]))


    if os.name == 'posix':
        file_path = Path("/".join(str(file_path).split("/")[2:]))
    elif os.name == 'nt':
        file_path = Path("\\".join(str(file_path).split("\\")[2:]))
@samet-akcay
Copy link
Contributor

@mitanihiroshi, this is a duplicate of #1831. There is a suggested solution there as well. We just need to create a PR and merge the suggested change.

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