sddebz / stable-diffusion-krita-plugin

GNU Affero General Public License v3.0
423 stars 34 forks source link

Long prompt text sometimes fails #10

Open prog0111 opened 2 years ago

prog0111 commented 2 years ago

I believe it's due to the prompt text being used in the filename, as I see error messages and a long / cropped filename being printed to the console (file not found) when it happens. My quick fix this time is to edit modules/images.py and change line 242 to:

def save_image(image, path, basename, seed=None, prompt=None, extension='png', info=None, short_filename=True, no_prompt=False):

In other words, setting short_filename=True instead of False. After doing that, I can use long prompts normally.

sddebz commented 2 years ago

I think I disabled saving images with save_image() function completely now. Images are still saved for Krita plugin separately so there is no need to save them once more. It only slows down processing.