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

Hidden files are not excluded from get_$model_file() methods #789

Open
yuimbo opened this issue Feb 21, 2025 · 0 comments
Open

Hidden files are not excluded from get_$model_file() methods #789

yuimbo opened this issue Feb 21, 2025 · 0 comments

Comments

@yuimbo
Copy link

yuimbo commented Feb 21, 2025

I am using OSX and store my models on an external drive.

This has the unfortunate side-effect of creating ._filename files for every file:

$ ls -la
.
..
._ip-adapter-full-face_sd15.safetensors
._ip-adapter-plus-face_sd15.safetensors
._ip-adapter-plus-face_sdxl_vit-h.safetensors
._ip-adapter-plus_sd15.safetensors
._ip-adapter-plus_sdxl_vit-h.safetensors
._ip-adapter_sd15.safetensors
._ip-adapter_sd15_light_v11.bin
._ip-adapter_sd15_vit-G.safetensors
._ip-adapter_sdxl.safetensors
._ip-adapter_sdxl_vit-h.safetensors
ip-adapter-full-face_sd15.safetensors
ip-adapter-plus-face_sd15.safetensors
ip-adapter-plus-face_sdxl_vit-h.safetensors
ip-adapter-plus_sd15.safetensors
ip-adapter-plus_sdxl_vit-h.safetensors
ip-adapter_sd15.safetensors
ip-adapter_sd15_light_v11.bin
ip-adapter_sd15_vit-G.safetensors
ip-adapter_sdxl.safetensors
ip-adapter_sdxl_vit-h.safetensors

Since the methods for finding models (for example get_ipadapter_file()) use regexp to find the model, it will return the first match in alphabetical order.

This causes the node to break, since it will always try to use the ._ files instead of the model itself.

@yuimbo yuimbo changed the title ._ files are not excluded from get_$model_file() methods Hidden files are not excluded from get_$model_file() methods Feb 24, 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