capslock / stable-diffusion-bot

Telegram bot for Stable Diffusion, written in Rust.
https://capslock.github.io/stable-diffusion-bot/
MIT License
14 stars 4 forks source link

How to save generated photos to local drive | save pic to local drive #4

Closed TimmekHW closed 1 year ago

TimmekHW commented 1 year ago

How to save generated photos to local drive?

I wrote the following things in config.toml: do_not_save_samples = false do_not_save_grid = false save_images = true

but stable-defusion-bot.exe just stops and closes. how to tell the API to save the generated images?

capslock commented 1 year ago

You have it right, you just need to set save_images = true like above:

[txt2img]
save_images = true

But there was a bug that would overwrite this value. https://github.com/capslock/stable-diffusion-bot/commit/fdb0415510b8eea67119c30f8cc634065c5e8a96 fixes it and the above should now work.