Instructions to use kakaobrain/karlo-v1-alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kakaobrain/karlo-v1-alpha with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("kakaobrain/karlo-v1-alpha", 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
Commit ·
815e8dd
1
Parent(s): 179894a
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,7 +9,7 @@ Karlo is available in diffusers!
|
|
| 9 |
from diffusers import UnCLIPPipeline
|
| 10 |
import torch
|
| 11 |
|
| 12 |
-
pipe = UnCLIPPipeline.from_pretrained("
|
| 13 |
pipe = pipe.to('cuda')
|
| 14 |
|
| 15 |
prompt = "a high-resolution photograph of a big red frog on a green leaf."
|
|
|
|
| 9 |
from diffusers import UnCLIPPipeline
|
| 10 |
import torch
|
| 11 |
|
| 12 |
+
pipe = UnCLIPPipeline.from_pretrained("kakaobrain/karlo-v1-alpha", torch_dtype=torch.float16)
|
| 13 |
pipe = pipe.to('cuda')
|
| 14 |
|
| 15 |
prompt = "a high-resolution photograph of a big red frog on a green leaf."
|