Update README.md
Browse files
README.md
CHANGED
|
@@ -25,9 +25,9 @@ from PIL import Image
|
|
| 25 |
from diffusers import DiffusionPipeline
|
| 26 |
|
| 27 |
pipeline = DiffusionPipeline.from_pretrained("superdiff/superdiff-sd-v1-4", custom_pipeline='pipeline', trust_remote_code=True)
|
| 28 |
-
|
| 29 |
|
| 30 |
-
image = Image.fromarray(
|
| 31 |
image.save("superdiff_output.png")
|
| 32 |
```
|
| 33 |
|
|
|
|
| 25 |
from diffusers import DiffusionPipeline
|
| 26 |
|
| 27 |
pipeline = DiffusionPipeline.from_pretrained("superdiff/superdiff-sd-v1-4", custom_pipeline='pipeline', trust_remote_code=True)
|
| 28 |
+
output = pipeline("a flamingo", "a candy cane", seed=1, num_inference_steps=1000, batch_size=1)
|
| 29 |
|
| 30 |
+
image = Image.fromarray(output[0].cpu().numpy())
|
| 31 |
image.save("superdiff_output.png")
|
| 32 |
```
|
| 33 |
|