mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +00:00
f9d2bd24eb
**Description** Enable setting the seed for the stable diffusion pipeline. This is done through an additional `seed` parameter in the request, such as: ```bash curl http://localhost:8080/v1/images/generations \ -H "Content-Type: application/json" \ -d '{"model": "stablediffusion", "prompt": "prompt", "n": 1, "step": 51, "size": "512x512", "seed": 3}' ``` **Notes for Reviewers** When the `seed` parameter is not sent, `request.seed` defaults to `0`, making it difficult to detect an actual seed of `0`. Is there a way to change the default to `-1` for instance ? **[Signed commits](../CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin)** - [x] Yes, I signed my commits. <!-- Thank you for contributing to LocalAI! Contributing Conventions: 1. Include descriptive PR titles with [<component-name>] prepended. 2. Build and test your changes before submitting a PR. 3. Sign your commits By following the community's contribution conventions upfront, the review process will be accelerated and your PR merged more quickly. --> |
||
---|---|---|
.. | ||
autogptq | ||
bark | ||
diffusers | ||
exllama | ||
huggingface |