-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
[Bug]: Having a "#" character in the prompt causes a file not found exception #5271
Comments
Not sure why the issue name was changed since this occurs without any script running. I don't believe the X/Y script is causing it - it was just an example use case for using the # character. |
sure, change it, it had no title before |
Oh, I must have forgot to enter one. My bad |
I've got the same issue by trying the prompts from Aesthetic Gradients: Tried in UI (quotes for clarity): gives: I read in another thread that "round brackets are from Stable Diffusion" and "curly brackets are from NovelAI" |
What does # do in NovelAI? |
This issue was created earlier, but i already rerouted most of them here, so... #6599 |
Is there an existing issue for this?
What happened?
Using a prompt that has a "#" causes the completed image to not be displayed in the image gallery. It throws a
RuntimeError: File at path C:\Stuff\AI\Stable Diffusion\outputs\txt2img-images\22352-8- does not exist.
It appears that the "#" is acting like a python comment, cutting off the rest of the file name.
The file exists in my hard drive, and I can view it normally through file explorer using IrfanView.
Note that using a "#" before I updated to this version that supports SD2.0 worked a few weeks ago. That working commit was:
c5334fc56b3d44976425da2e6d0a303ae96836a1
. I know this because I used to use "#" as a placeholder for the X/Y Prompt S/R script.Tested with SD2.0 model and older models.
Steps to reproduce the problem
What should have happened?
Image preview should be shown in the image gallery instead of an image not found icon.
Commit where the problem happens
4b3c5bc
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
Additional information, context and logs
The text was updated successfully, but these errors were encountered: