patrickvonplaten
commited on
Commit
•
c918bd9
1
Parent(s):
01c572e
Update README.md
Browse files
README.md
CHANGED
@@ -23,7 +23,7 @@ import torch
|
|
23 |
from diffusers import StableDiffusionInstructPix2PixPipeline, EulerAncestralDiscreteScheduler
|
24 |
|
25 |
model_id = "timbrooks/instruct-pix2pix"
|
26 |
-
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
27 |
pipe.to("cuda")
|
28 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
29 |
|
|
|
23 |
from diffusers import StableDiffusionInstructPix2PixPipeline, EulerAncestralDiscreteScheduler
|
24 |
|
25 |
model_id = "timbrooks/instruct-pix2pix"
|
26 |
+
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None)
|
27 |
pipe.to("cuda")
|
28 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
29 |
|