cbh123 / charl-e

Run Stable Diffusion on your M1 Mac
MIT License
543 stars 19 forks source link

Crash if the description exceeds 251 characters #2

Closed ehamiter closed 2 years ago

ehamiter commented 2 years ago

Prerequisites

Expected Behavior

You should be able to enter a lengthy prompt, for example:

powerful dark matter mancer, dark soul 3, Extra-Wide Angle, 3d zbrush, trend on ArtStation, Realistic Lighting, Volumetric Lighting, dramatic, 8k, cinematic, super detailed, vfx, symmetrical face and body, full body portrait, cinematic lighting, hyperdetailed, detailed realistic symmetrical eyes, cinematic lighting, hyperdetailed, cgsociety, 8k, high resolution, noah bradley, Billelis, masamune shirow, katsuhiro Otomo, insanely detailed and intricate, dark, dramatic, powerful, poster, cinematic Lighting through volume, Style=render, highly detail render with octane, octane render, color black and gold, photorealistic

and have the image generate.

Current Behavior

Currently, the filename is saved as the description, with spaces replaced with dashes, and .png added to the suffix. If this filename exceeds 255 characters, the following error is thrown and the program halts:

OSError: [Errno 63] File name too long: '<filename here>[25502] Failed to execute script 'txt2img' due to unhandled exception!

Steps to Reproduce

  1. Enter a description greater than 251 characters
  2. Generate
cbh123 commented 2 years ago

Thanks! will fix this

cbh123 commented 2 years ago

Fixed in latest!