Instructions to use OzzyGT/ideogram4_custom_blocks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/ideogram4_custom_blocks with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OzzyGT/ideogram4_custom_blocks", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -39,7 +39,7 @@ pipe.load_components(
|
|
| 39 |
)
|
| 40 |
pipe.to("cuda")
|
| 41 |
|
| 42 |
-
image = pipe(prompt="a photo of a red apple on a black background", output="images")[0]
|
| 43 |
image.save("out.png")
|
| 44 |
```
|
| 45 |
|
|
@@ -56,8 +56,6 @@ result = pipe(
|
|
| 56 |
prompt="a photo of a snowy mountain landscape at sunset, dramatic clouds",
|
| 57 |
image=image,
|
| 58 |
strength=0.6,
|
| 59 |
-
height=1024,
|
| 60 |
-
width=1024,
|
| 61 |
output="images",
|
| 62 |
)[0]
|
| 63 |
result.save("img2img.png")
|
|
|
|
| 39 |
)
|
| 40 |
pipe.to("cuda")
|
| 41 |
|
| 42 |
+
image = pipe(prompt="a photo of a red apple on a black background", height=1024, width=1024, output="images")[0]
|
| 43 |
image.save("out.png")
|
| 44 |
```
|
| 45 |
|
|
|
|
| 56 |
prompt="a photo of a snowy mountain landscape at sunset, dramatic clouds",
|
| 57 |
image=image,
|
| 58 |
strength=0.6,
|
|
|
|
|
|
|
| 59 |
output="images",
|
| 60 |
)[0]
|
| 61 |
result.save("img2img.png")
|