File size: 911 Bytes
36b4dba ee55cd2 f4c3313 5433aee 1630076 5433aee 1630076 5433aee 1630076 5433aee 1630076 5433aee 1630076 5433aee 1630076 ff37f17 91f27c2 36b4dba |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
---
tags:
- dreambooth-hackathon
---
中国奇谭第一季画风模型
import torch
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("sd-dreambooth-library/cnstory", torch_dtype=torch.float16, use_auth_token=True)
pipe = pipe.to("cuda")
prompt = "a photograph of an astronaut riding a horse, cnstory artstyle"
image = pipe(prompt).images[0]
image.save(f"astronaut_rides_horse.png")



 |