wanghaofan
commited on
Commit
•
7434a09
1
Parent(s):
6598483
Update README.md
Browse files
README.md
CHANGED
@@ -20,7 +20,7 @@ widget:
|
|
20 |
negative_prompt: (lowres, low quality, worst quality)
|
21 |
output:
|
22 |
url: images/756607bc025fe25935c39225bf18f3c98d24aa5878541533a9ca3424.jpg
|
23 |
-
base_model: stabilityai/stable-diffusion-3-
|
24 |
instance_prompt: Chinese line art
|
25 |
license: other
|
26 |
license_name: stabilityai-ai-community
|
@@ -43,7 +43,7 @@ You should use `Chinese line art` to trigger the image generation.
|
|
43 |
import torch
|
44 |
from diffusers import StableDiffusion3Pipeline # please install diffusers from the source
|
45 |
|
46 |
-
pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large
|
47 |
pipe.load_lora_weights("Shakker-Labs/SD3.5-LoRA-Chinese-Line-Art", weight_name="SD35-lora-Chinese-Line-Art.safetensors")
|
48 |
pipe.fuse_lora(lora_scale=1.0)
|
49 |
pipe.to("cuda")
|
|
|
20 |
negative_prompt: (lowres, low quality, worst quality)
|
21 |
output:
|
22 |
url: images/756607bc025fe25935c39225bf18f3c98d24aa5878541533a9ca3424.jpg
|
23 |
+
base_model: stabilityai/stable-diffusion-3.5-large
|
24 |
instance_prompt: Chinese line art
|
25 |
license: other
|
26 |
license_name: stabilityai-ai-community
|
|
|
43 |
import torch
|
44 |
from diffusers import StableDiffusion3Pipeline # please install diffusers from the source
|
45 |
|
46 |
+
pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large", torch_dtype=torch.bfloat16)
|
47 |
pipe.load_lora_weights("Shakker-Labs/SD3.5-LoRA-Chinese-Line-Art", weight_name="SD35-lora-Chinese-Line-Art.safetensors")
|
48 |
pipe.fuse_lora(lora_scale=1.0)
|
49 |
pipe.to("cuda")
|