Skip to content

Lora Loader "examples" widget fails to load multiple text files from a folder when LoRA path contains [ or ] #427

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

Open
u9th opened this issue Jan 23, 2025 · 0 comments

Comments

@u9th
Copy link

u9th commented Jan 23, 2025

The part where the .txt file with the same name as the LoRA is placed works as expected. However, the part where multiple text files are loaded from a folder with the same name as the LoRA does not work correctly.

This issue occurs because the implementation uses glob.glob, which treats these characters as wildcard patterns instead of literal characters.

glob.glob(file_path_no_ext + "/*.txt")))

It is likely that using glob.escape will fix the issue.

@u9th u9th changed the title Lora Loader "examples" widget fails to load when LoRA path contains [ or ] Lora Loader "examples" widget fails to load multiple text files from a folder when LoRA path contains [ or ] Jan 23, 2025
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

1 participant