logo
Friday 1 year ago
parent
commit
f774e8a984
  1. 21
      README.md

21
README.md

@ -23,6 +23,7 @@ Stable Diffusion is a software library that provides efficient and accurate algo
## Code example
```pythonscript
import torch
from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
@ -35,10 +36,17 @@ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float
prompt = "an orange cat"/“a corgi”
image = pipe(prompt).images[0]
image.save("orange_cat.png"/“corgi.png”)
image = pipe(prompt).images[0] image.save("orange_cat.png"/“corgi.png”)
}
```
## Screenshots
[Alt text](https://towhee.io/text2image/stable-diffusion/raw/branch/main/an%20orange%20cat.png)
The image results are also availble in the repository,please feel free to have a look!
## Contributing
If you find any issues or have suggestions for improvements, please submit them through the GitHub issue tracker. Contributions to the Stable Diffusion are welcome. You can fork the repository, make your changes, and submit a pull request.
@ -49,4 +57,9 @@ Please ensure that your contributions adhere to the coding conventions and style
Stable Diffusion is licensed under the MIT License. You are free to use, modify, and distribute the library in accordance with the terms of this license.
## Contact
If you have any questions or need further assistance, feel free to reach out to the development team at 3270939387@qq.com. We would be happy to assist you.
If you have any questions or need further assistance, feel free to reach out to the development team at 3270939387@qq.com. We would be happy to assist you.
## Screenshots
[Alt text](https://towhee.io/text2image/stable-diffusion/raw/branch/main/an%20orange%20cat.png)

Loading…
Cancel
Save