AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
136.37k stars 25.99k forks source link

[Bug]: [model_name] in filename includes the model directory #11638

Open JingJang opened 1 year ago

JingJang commented 1 year ago

Is there an existing issue for this?

What happened?

I believe this is a bug but not sure. But basically the [model_name] pattern in filename, seems to include the directory. So for example instead "Anything-v3-fp16-pruned" if I place it in "Anime" subdirectory, the filename becomes something like "Anime_Anything-v3-fp16-pruned".

Steps to reproduce the problem

  1. Change the image filename pattern to something like this [seed] - [model_name]
  2. Place model inside a subdirectory
  3. Create an image

What should have happened?

Image filename without directory

Version or Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/baf6946e06249c5af9851c60171692c44ef633e0

What Python version are you running on ?

None

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

No response

Cross attention optimization

xformers

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

set COMMANDLINE_ARGS=--xformers --medvram --opt-split-attention --no-half-vae

List of extensions

https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper.git https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris.git

Console logs

NA

Additional information

NA

pro-krastinator commented 9 months ago

Have the same issue, it also happens with directories as well.