|
4 | 4 |
|
5 | 5 | # Download models (automatically) |
6 | 6 | # `models/stable_diffusion_3/sd3_medium_incl_clips.safetensors`: [link](https://huggingface.co/stabilityai/stable-diffusion-3-medium/resolve/main/sd3_medium_incl_clips.safetensors) |
7 | | -download_models(["StableDiffusion3_without_T5"]) |
| 7 | +download_models(["StableDiffusion3"]) |
8 | 8 | model_manager = ModelManager(torch_dtype=torch.float16, device="cuda", |
9 | | - file_path_list=["models/stable_diffusion_3/sd3_medium_incl_clips.safetensors"]) |
| 9 | + file_path_list=["models/stable_diffusion_3/sd3_medium_incl_clips_t5xxlfp16.safetensors"]) |
10 | 10 | pipe = SD3ImagePipeline.from_model_manager(model_manager) |
11 | 11 |
|
12 | 12 |
|
13 | | -torch.manual_seed(0) |
| 13 | +prompt = "masterpiece, best quality, solo, long hair, wavy hair, silver hair, blue eyes, blue dress, medium breasts, dress, underwater, air bubble, floating hair, refraction, portrait," |
| 14 | +negative_prompt = "worst quality, low quality, monochrome, zombie, interlocked fingers, Aissist, cleavage, nsfw," |
| 15 | + |
| 16 | +torch.manual_seed(7) |
14 | 17 | image = pipe( |
15 | | - prompt="a white cat, colorful ink painting, cyberpunk, unreal", |
16 | | - negative_prompt="bad quality, poor quality, doll, disfigured, jpg, toy, bad anatomy, missing limbs, missing fingers, 3d, cgi", |
17 | | - cfg_scale=4.5, |
18 | | - num_inference_steps=50, width=1024, height=1024, |
| 18 | + prompt=prompt, |
| 19 | + negative_prompt=negative_prompt, |
| 20 | + cfg_scale=7.5, |
| 21 | + num_inference_steps=100, width=1024, height=1024, |
19 | 22 | ) |
20 | 23 | image.save("image_1024.jpg") |
21 | 24 |
|
22 | 25 | image = pipe( |
23 | | - prompt="a white cat, colorful ink painting, cyberpunk, unreal", |
24 | | - negative_prompt="bad quality, poor quality, doll, disfigured, jpg, toy, bad anatomy, missing limbs, missing fingers, 3d, cgi", |
| 26 | + prompt=prompt, |
| 27 | + negative_prompt=negative_prompt, |
| 28 | + cfg_scale=7.5, |
25 | 29 | input_image=image.resize((2048, 2048)), denoising_strength=0.5, |
26 | | - cfg_scale=4.5, |
27 | 30 | num_inference_steps=50, width=2048, height=2048, |
28 | 31 | tiled=True |
29 | 32 | ) |
|
0 commit comments