Instructions to use Aleton/belorn-ornament-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Aleton/belorn-ornament-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Aleton/belorn-ornament-lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
🛡️ Belorn Ornament LoRA for SDXL
Эта LoRA модель для Stable Diffusion XL (SDXL) предназначена для генерации сложных, высокодетализированных фэнтезийных орнаментов, 3D-резьбы по металлу и дереву, а также декоративных узоров.
Модель отлично справляется с созданием золотых барельефов, украшением брони, щитов, архитектурных элементов и гибридизацией стилей (например, скрещиванием традиционной геометрии с объемным металлом).
🔑 Использование
- Триггерное слово:
belorn - Оптимальный вес (LoRA scale):
0.6 - 1.0(рекомендуется0.8для хорошего баланса между формой объекта и узором). - Базовая модель: SDXL 1.0
💡 Примеры промптов (Prompts)
1. Золотой щит с объемной резьбой (Классическое использование):
Prompt:
a beautiful golden belorn ornament engraved on a dark wooden shield, fantasy style, high detail, masterpiece, 8kNegative prompt:blurry, low quality, worst quality, text, watermarkLoRA weight: 0.8
2. Гибрид: Белорусский геометрический орнамент из золота:
Prompt:
traditional Belarusian folk ornament, metallic rhombus and eight-pointed stars, belorn style, made entirely of solid 3D gold, luxury jewelry crafting, dark background, highly detailed masterpiece, 8kNegative prompt:cloth, fabric, thread, 2d, flat, maze, labyrinth, modern, blurryLoRA weight: 0.65
3. Классическая вышивка на ткани (Слабое влияние LoRA):
Prompt:
traditional Belarusian geometric ornament, belorn, red and white cross-stitch embroidery on woven linen fabric, folk art, cultural heritage, highly detailedNegative prompt:metal, gold, 3d, carving, blurry, modernLoRA weight: 0.4
⚙️ Рекомендуемые настройки генерации
- Steps (Шаги): 25 - 35
- CFG Scale: 7.0
- Sampler: DPM++ 2M Karras (или Euler a)
💻 Использование через Python (Diffusers)
import torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
).to("cuda")
pipe.load_lora_weights("Aleton/belorn-ornament-lora")
prompt = "a beautiful golden belorn ornament engraved on a dark wooden shield, fantasy style, high detail, masterpiece, 8k"
negative_prompt = "blurry, low quality, worst quality, text, watermark, 2d, flat"
image = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
num_inference_steps=30, # Рекомендованные шаги (25-35)
guidance_scale=7.0, # Рекомендованный CFG Scale (7.0)
cross_attention_kwargs={"scale": 0.8} # Рекомендованный вес LoRA (0.6 - 1.0)
).images[0]
image.save("belorn_ornament_result.png")
📊 Детали обучения
- Разрешение датасета: 1024x1024
- Оборудование: NVIDIA A40 (48GB VRAM)
- Batch Size: 8
- Оптимизатор: 8-bit AdamW
- Количество шагов: 1050
- Downloads last month
- 70
Model tree for Aleton/belorn-ornament-lora
Base model
stabilityai/stable-diffusion-xl-base-1.0