[bug]: LoRAs with spaces in the name can't be used
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
Windows
GPU
cuda
VRAM
24GB
What version did you experience this issue on?
2.3.5.post2
What happened?
Steps to reproduce
- Download any LoRA and name it
example with spaces.safetensors - Copy that file and name the copy
example_without_spaces.safetensors - Put both files in the
invokeai/lorasdirectory - Start InvokeAI's web interface
- Set the seed to any fixed value you like
- Type
catfor your prompt - Click "Add Lora", and select
example_without_spacesa. Your prompt should now readcat withLora(example_without_spaces,0.75) - Click Invoke
- Click "Add Lora", deselect
example_without_spacesand selectexample with spacesa. Your prompt should now readcat withLora(example with spaces,0.75) - Click Invoke
Expected Results
Because the prompt, seed, and backing LoRA file was the same for both images, both images should be identical.
Actual Results
The images are different. Specifically, the image you generated using the example with spaces LoRA doesn't utilize the LoRA at all.
Screenshots
No response
Additional context
No response
Contact Details
No response
oh, that was my problem until I eventually wrote a script to automatically download and rename LoRA
I have almost 3000 of them already, I can't even open the drop-down list because my browser freezes on this
I can offer my repository as a temporary solution (I hope that similar functionality will eventually appear in Invoke)
This is related to #3452. InvokeAI does not support LORA filenames that contain symbols other than alphanumeric symbols and underscore. So, the solution will be renaming the LORA files.