Downloads · 30 days
18
23% of all-time downloads
AfroLogicInsect/sd-lora-nigerian-adire
sd-lora-nigerian-adire is a text-to-image model from AfroLogicInsect. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
<div align="center" <img src="images/header.jpg" alt="Generated Examples" width="800"/ </div
Downloads · 30 days
18
23% of all-time downloads
All-time downloads
78
Public
Repo size
68.3 MB
Likes
0
Public
Click a slice to open those files.
.bin32.1 MB · 45%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) model fine-tuned on traditional Nigerian adire textile patterns. It teaches Stable Diffusion 1.5 to generate images in the distinctive adire style—characterized by intricate geometric patterns, indigo blue coloring, and traditional Yoruba design elements.
Trigger phrase: nigerian_adire_style
from diffusers import StableDiffusionPipeline
import torch
# Load base model
pipe = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16
)
# Load LoRA weights
pipe.unet.load_attn_procs("AfroLogicInsect/sd-lora-nigerian-adire")
pipe = pipe.to("cuda")
# Generate
prompt = "a nigerian_adire_style painting of a sunset over Lagos"
image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0]
image.save("output.png")
# With custom parameters
image = pipe(
prompt="a nigerian_adire_style portrait with geometric patterns",
negative_prompt="blurry, low quality, distorted",
num_inference_steps=75,
guidance_scale=9.0,
height=512,
width=512,
generator=torch.manual_seed(42)
).images[0]
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16
)
pipe.unet.load_attn_procs("AfroLogicInsect/sd-lora-nigerian-adire")
pipe.to("cuda")
Base Model: runwayml/stable-diffusion-v1-5
Method: LoRA (Low-Rank Adaptation)
Rank: 4
Alpha: 4
Hyperparameters:
Learning Rate: 1e-4
Scheduler: constant
Training Steps: 800
Batch Size: 1
Gradient Accumulation: 4
Optimizer: AdamW (8-bit)
Mixed Precision: fp16
Hardware:
GPU: Tesla T4 (Google Colab)
VRAM: 15GB
Training Time: ~75 minutes
The model was trained using DreamBooth with LoRA adapters:
This model was built with a complete production pipeline:
| Metric | Value | Threshold |
|---|---|---|
| CLIP Score | 0.85 | > 0.75 ✓ |
| Generation Time | 12.3s | < 30s ✓ |
| Success Rate | 100% | > 95% ✓ |
| Quality (Human) | 4.6/5 | N/A |
Resolution: 512×512 Steps: 50 Guidance: 7.5 Average Time: 12.3s P95 Latency: 14.1s Throughput: ~5 images/minute
# ✓ Good prompts (specific, descriptive)
"a nigerian_adire_style painting of Lagos cityscape at golden hour"
"a nigerian_adire_style portrait of a woman with geometric patterns"
"a nigerian_adire_style pattern featuring indigo and white colors"
# ✗ Poor prompts (too vague)
"adire style image"
"nigerian art"
"blue pattern"
num_inference_steps = 50-75 # Higher = better quality
guidance_scale = 7.5-9.0 # Higher = stronger style adherence
negative_prompt = "blurry, low quality, distorted, western style"
Style Mixing:
prompt = "a nigerian_adire_style painting with Art Nouveau influences"
Subject Focus:
prompt = "a nigerian_adire_style portrait of [subject], detailed geometric patterns"
The model reflects the patterns present in the training data—traditional adire designs from specific Nigerian communities. It may not represent all regional variations or modern interpretations of adire art.
This model is released under the CreativeML Open RAIL-M license.
Key Points:
If you use this model in your research or project, please cite:
@misc{nigerian-adire-lora-2025,
author = {Akan Daniel},
title = {Stable Diffusion LoRA: Nigerian Adire Style},
year = {2025},
publisher = {HuggingFace},
journal = {HuggingFace Model Hub},
howpublished = {\url{https://huggingface.co/AfroLogicInsect/sd-lora-nigerian-adire}}
}
Blog Series:
@article{mlops-blog-series-2025,
author = {Akan Daniel},
title = {Building Production AI: A Three-Part MLOps Journey},
year = {2025},
url = {https://dev.to/afrologicinsect/building-production-ai-a-three-part-mlops-journey-38a8}
}
Prompt: a nigerian_adire_style painting of Lagos cityscape at sunset
Prompt: a nigerian_adire_style portrait of a woman wearing traditional attire
Prompt: a nigerian_adire_style pattern with indigo geometric shapes
Built with ❤️ for cultural preservation through AI
</div>