wanghaofan
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,7 @@ You should use `Linear red light` to trigger the image generation.
|
|
58 |
import torch
|
59 |
from diffusers import StableDiffusion3Pipeline # please install diffusers from the source
|
60 |
|
61 |
-
pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large
|
62 |
pipe.load_lora_weights("Shakker-Labs/SD3.5-LoRA-Linear-Red-Light", weight_name="SD35-lora-Linear-Red-Light.safetensors")
|
63 |
pipe.fuse_lora(lora_scale=1.0)
|
64 |
pipe.to("cuda")
|
|
|
58 |
import torch
|
59 |
from diffusers import StableDiffusion3Pipeline # please install diffusers from the source
|
60 |
|
61 |
+
pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large", torch_dtype=torch.bfloat16)
|
62 |
pipe.load_lora_weights("Shakker-Labs/SD3.5-LoRA-Linear-Red-Light", weight_name="SD35-lora-Linear-Red-Light.safetensors")
|
63 |
pipe.fuse_lora(lora_scale=1.0)
|
64 |
pipe.to("cuda")
|