Downloads · 30 days
0
Shehab-Hegab/flux-islamic-parametric-lora
flux-islamic-parametric-lora is a text-to-image model from Shehab-Hegab. Use it when you need an image from a text prompt. It is set up for diffusers.
Adapter for Islamic Parametric Architecture & Facades: geometric lattice screens, mashrabiya parametric patterns, and structurally symmetric modern envelopes. Geometry is evaluated with measurable metrics (symmetry, e…
Downloads · 30 days
0
Access
Public
Updated Sep 23, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md2.6 KB · 63%
From the Hugging Face model README
Adapter for Islamic Parametric Architecture & Facades: geometric lattice screens, mashrabiya parametric patterns, and structurally symmetric modern envelopes. Geometry is evaluated with measurable metrics (symmetry, edges, periodicity) — not a hallucination guarantee.
License: non-commercial research/demo only (FLUX.1-dev + derivatives non-commercial).
in Islamic_Parametric styleIslamic_ParametricExample prompt:
A modern cultural center facade in Islamic_Parametric style, geometric parametric wooden panels, realistic lighting, 8k architectural photo
| Hyperparameter | Value |
|---|---|
| Base model | black-forest-labs/FLUX.1-dev |
| Method | DreamBooth LoRA (diffusers train_dreambooth_lora_flux.py) |
| Rank | 16 |
| Alpha | 16 |
| Learning rate | 1e-04 |
| Resolution | 1024×1024 |
| Max train steps | 800 |
| Optimizer | adamw8bit |
| Mixed precision | bf16 + gradient checkpointing |
| Dataset | 25 images + captions, Shehab-Hegab/islamic-parametric-architecture-dataset |
| Weights file | pytorch_lora_weights.safetensors |
import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("Shehab-Hegab/flux-islamic-parametric-lora", weight_name="pytorch_lora_weights.safetensors")
pipe.enable_model_cpu_offload()
image = pipe(
"A contemporary mosque exterior in Islamic_Parametric style, mashrabiya lattice screen, golden hour, photorealistic 8k",
height=1024, width=1024, num_inference_steps=28, guidance_scale=3.5,
).images[0]
image.save("out.png")
The adapter is trained on a curated set of modern Islamic parametric facades so generated views preserve modular rhythm, bilateral symmetry, and lattice topology — evaluation grids in the training repo compare base FLUX.1-dev against this adapter side-by-side at fixed seed 42 to verify geometric structural logic.
See inference_eval.py (base vs LoRA grids, seed 42) and evaluate_structure.py
(bilateral symmetry error, edge density, Hough-line consistency, periodicity) in the source
repository. Prompts are locked to the trigger word.