fboulnois / stable-diffusion-docker

Run the official Stable Diffusion releases in a Docker container with txt2img, img2img, depth2img, pix2pix, upscale4x, and inpaint.
GNU Affero General Public License v3.0
735 stars 127 forks source link

Pr/filename fixes #77

Closed boriselec closed 1 year ago

boriselec commented 1 year ago
  1. fix trimming error (when char takes more than 1 byte) OSError: [Errno 36] File name too long: 'output/A_comfortable_and_attractive_chair._Can_be_used_at_tableswork_stationsandelsewhere.在这件家具上雕刻的内容刻画的是MadelineLandry正在精确着陆的程序中以空投舱方式撞向地面她坚强地微笑着作品给人一种几何风气息并使用了动态布局这件steps_50scale_7.50seed_519762248n_1.png'

see: https://stackoverflow.com/a/24839091/2513279

  1. fix file creation on illegal filename (like '/' or so)

see: https://stackoverflow.com/a/55101759/2513279

3: refactor to print generated files

fboulnois commented 1 year ago

Thank you for the bug report, I used a slightly different approach:

The fixes are in #79 .