Views
No views yet
linoyts/Krea2-emoji-LoRA
(a 3D-emoji style LoRA) on top of krea/Krea-2-Turbo
via Hugging Face Inference Endpoints.pytorch_lora_weights.safetensors) are bundled here; the base model is pulled
from the Hub at startup. Inference uses the Turbo recipe: 8 steps, guidance_scale=0.0.1import requests, base64
2
3API_URL = "<your-endpoint-url>"
4headers = {"Authorization": "Bearer <hf-token>", "Accept": "image/png"}
5
6resp = requests.post(API_URL, headers=headers, json={
7 "inputs": "a wise wizard with a long white beard and a tall blue pointed hat, 3d emoji",
8 "parameters": {"num_inference_steps": 8, "guidance_scale": 0.0, "seed": 0},
9})
10with open("emoji.png", "wb") as f:
11 f.write(resp.content)3d emoji to trigger the style.| name | default | notes |
|---|---|---|
num_inference_steps | 8 | Turbo is distilled for ~8 steps (max 30) |
guidance_scale | 0.0 | no CFG on Turbo |
height / width | 1024 | max 1536 |
seed | random | int for reproducibility |