Spaces:
Running on Zero
Running on Zero
Create Lorry
Browse files
Lorry
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from diffusers import Krea2Pipeline
|
| 3 |
+
|
| 4 |
+
pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16).to("cuda")
|
| 5 |
+
pipe.load_lora_weights("Dzoordan/lorry")
|
| 6 |
+
image = pipe("A futuristic neon-lit cyberpunk city street where a sleek, chrome Lorry floats silently above a rain-slicked asphalt road.", num_inference_steps=8, guidance_scale=0.0).images[0]
|
| 7 |
+
image.save("output.png")
|