clementchadebec
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -39,18 +39,16 @@ from peft import PeftModel
|
|
39 |
|
40 |
# Load LoRA
|
41 |
transformer = SD3Transformer2DModel.from_pretrained(
|
42 |
-
"stabilityai/stable-diffusion-3-medium",
|
43 |
subfolder="transformer",
|
44 |
torch_dtype=torch.float16,
|
45 |
-
revision="refs/pr/26"
|
46 |
)
|
47 |
transformer = PeftModel.from_pretrained(transformer, "jasperai/flash-sd3")
|
48 |
|
49 |
|
50 |
# Pipeline
|
51 |
pipe = StableDiffusion3Pipeline.from_pretrained(
|
52 |
-
"stabilityai/stable-diffusion-3-medium",
|
53 |
-
revision="refs/pr/26",
|
54 |
transformer=transformer,
|
55 |
torch_dtype=torch.float16,
|
56 |
text_encoder_3=None,
|
@@ -59,9 +57,8 @@ pipe = StableDiffusion3Pipeline.from_pretrained(
|
|
59 |
|
60 |
# Scheduler
|
61 |
pipe.scheduler = FlashFlowMatchEulerDiscreteScheduler.from_pretrained(
|
62 |
-
"stabilityai/stable-diffusion-3-medium",
|
63 |
subfolder="scheduler",
|
64 |
-
revision="refs/pr/26",
|
65 |
)
|
66 |
|
67 |
pipe.to("cuda")
|
|
|
39 |
|
40 |
# Load LoRA
|
41 |
transformer = SD3Transformer2DModel.from_pretrained(
|
42 |
+
"stabilityai/stable-diffusion-3-medium-diffusers",
|
43 |
subfolder="transformer",
|
44 |
torch_dtype=torch.float16,
|
|
|
45 |
)
|
46 |
transformer = PeftModel.from_pretrained(transformer, "jasperai/flash-sd3")
|
47 |
|
48 |
|
49 |
# Pipeline
|
50 |
pipe = StableDiffusion3Pipeline.from_pretrained(
|
51 |
+
"stabilityai/stable-diffusion-3-medium-diffusers",
|
|
|
52 |
transformer=transformer,
|
53 |
torch_dtype=torch.float16,
|
54 |
text_encoder_3=None,
|
|
|
57 |
|
58 |
# Scheduler
|
59 |
pipe.scheduler = FlashFlowMatchEulerDiscreteScheduler.from_pretrained(
|
60 |
+
"stabilityai/stable-diffusion-3-medium-diffusers",
|
61 |
subfolder="scheduler",
|
|
|
62 |
)
|
63 |
|
64 |
pipe.to("cuda")
|