Closed lenaxia closed 7 months ago
Had a similar problem but did a refresh setup (clearing storage folders and downloading the models) and works fine now. So probably a version mismatch between backends and models or duplications.
this is fixed now, alternatively the models can be installed directly from the webui. Reopen if necesasary!
LocalAI version: v2.0.0
10:23PM INF LocalAI version: v2.0.0 (238fec244ae6c9a66bc7fafd76c7e14671110a6f)
Environment, CPU architecture, OS, and Version:
Describe the bug Applying the Stable diffusion model puts assets into a /models/stablediffusion_assets folder. When calling the image generation endpoint, it complains that it cannot find the folder /models/stablediffusion. Renaming /models/stabledifussion_assets to /models/stablediffusion fixes the problem.
To Reproduce
Rename the folder from /models/stabledifussion_assets to /models/stablediffusion
{"created":1703062940,"id":"e317a84e-9107-4888-8d84-9e4057bc307c","data":[{"embedding":null,"index":0,"url":"https://my.domain/generated-images/b641229542902.png"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}
Expected behavior Stablediffusion should work out of the box without issue
Logs
Before rename:
After rename:
Additional context This seems to be where it is defining which folder to pull from, by just appending the model name to /models. So we shouldn't be using _assets
https://github.com/mudler/LocalAI/blob/7741a6e75d08cc78f44e3595a2cb15954718e959/pkg/model/loader.go#L129