From f774e8a984a4c1a60b85b1a791d04bb9aa9b8a66 Mon Sep 17 00:00:00 2001 From: Friday <3270939387@qq.com> Date: Thu, 21 Sep 2023 19:16:42 +0800 Subject: [PATCH] ospp --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5ef05f5..e218c70 100644 --- a/README.md +++ b/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. \ No newline at end of file +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) + +