openvinotoolkit / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
290 stars 45 forks source link

[Feature Request]: use cached models after close webUI and re-launch later #75

Closed ananosleep closed 1 year ago

ananosleep commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

Choose "Cache the compiled models on disk for faster model load in subsequent launches (Recommended)", generate a picture, and then close webUI while keeping the cache in disk. Later launch webUI again and try generating a picture with same model, same sampler, same resolution, same batch size, and same device like before. The openVINO script re-compile the model instead of using the cache which left last time. consider use the cache to save time and disk.

Proposed workflow

  1. Generate some pictures.
  2. Stop the webUI.
  3. Re-launch webUI later.
  4. Generate pictures with same parameter.
  5. The cached models being used instead of wasted.

Additional information

No response