|
83 | 83 | "immutable_weights": False, |
84 | 84 | } |
85 | 85 |
|
86 | | - model_id = "runwayml/stable-diffusion-v1-5" |
| 86 | + model_id = "stabilityai/stable-diffusion-xl-base-1.0" |
87 | 87 | device = "cuda:0" |
88 | 88 |
|
89 | | - prompt = "house in forest, shuimobysim, wuchangshuo, best quality" |
90 | | - negative = "(worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, out of focus, cloudy, (watermark:2)," |
| 89 | + prompt = "cinematic photo elsa, police uniform <lora:princess_xl_v2:0.8>, . 35mm photograph, film, bokeh, professional, 4k, highly detailed" |
| 90 | + negative = "drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly, nude" |
91 | 91 |
|
92 | | - pipe = DiffusionPipeline.from_pretrained( |
93 | | - model_id, revision="fp16", torch_dtype=torch.float16 |
94 | | - ) |
| 92 | + pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) |
95 | 93 | pipe.to(device) |
96 | 94 |
|
97 | 95 | # The only extra line you need |
|
103 | 101 | # Standard Huggingface LoRA loading procedure |
104 | 102 | pipe.load_lora_weights( |
105 | 103 | "stablediffusionapi/load_lora_embeddings", |
106 | | - weight_name="moxin.safetensors", |
| 104 | + weight_name="all-disney-princess-xl-lo.safetensors", |
107 | 105 | adapter_name="lora1", |
108 | 106 | ) |
109 | 107 | pipe.set_adapters(["lora1"], adapter_weights=[1]) |
|
0 commit comments