Instructions to use smshahbaj/RIFA-Illustration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use smshahbaj/RIFA-Illustration with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("smshahbaj/RIFA-Illustration") prompt = "rifa illustration, an elderly woman at a small corner store handing change to a boy on a plastic stool, fluorescent light casting a warm glow, evening light through the window, intimate close-up shot" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
About
RIFA Illustration is a FLUX.1-dev LoRA for warm, flat-painted illustrations of ordinary human life: grandmothers at corner stores, rainy bus stops, family kitchens, bookshops and cafes, village paths, old-town alleys, night markets and quiet moments between people.
Created by SM Shahbaj as part of the RIFA project family.
Training data
The training set is synthetic: 720 images across 26 categories (family life, markets, work, school, travel, festivals, seasons, cafes and shops, interiors, landscapes, old towns, night scenes, hobbies, sports, animals, modern life, world cultures, milestones, community).
What's included
| File | Description |
|---|---|
pytorch_lora_weights.safetensors |
Standard Diffusers format |
RIFA-Illustration.safetensors |
Single file (ComfyUI / other UIs) |
training_config.json |
Training hyperparameters |
inference.py |
Ready-to-run Python example |
comfyui_workflow_RIFA_Illustration.json |
Basic ComfyUI workflow |
showcase/ |
Example images |
Examples
1. Corner store at dusk
Prompt: rifa illustration, an elderly woman at a small corner store handing change to a boy on a plastic stool, fluorescent light casting a warm glow, evening light through the window, intimate close-up shot
2. Rainy bus stop
Prompt: rifa illustration, a father and his daughter sharing one umbrella at a rainy bus stop, puddles reflecting the street lights, medium shot at eye level
3. Bookshop
Prompt: rifa illustration, a bookshop owner reaching for a book from a tall wooden shelf while a customer waits below with a stack in her arms, warm lamplight, warm muted palette of terracotta and teal
4. Misty tea hills
Prompt: rifa illustration, a tiny figure with a red umbrella walking along a winding path through misty tea hills, soft overcast morning light, wide shot
5. Rooftop stargazing
Prompt: rifa illustration, two friends lying on a rooftop under the stars with a blanket and a thermos, city lights glowing below, deep indigo and amber tones
6. Reading nook
Prompt: rifa illustration, a reading nook under a sloped window with piled cushions, a cup of tea and an open book, soft golden afternoon light
Usage (Diffusers)
from diffusers import FluxPipeline
import torch
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("smshahbaj/RIFA-Illustration")
pipe.enable_model_cpu_offload()
prompt = "rifa illustration, a young man repairing a neighbor's old radio on a doorstep, soft evening light"
image = pipe(prompt, num_inference_steps=20, guidance_scale=3.5,
height=512, width=512).images[0]
image.save("rifa_illustration.png")
Prompt tips
- Start the prompt with
rifa illustration, then describe the scene in full sentences: who, what they are doing, the place, small props. - Add a light, a palette and a camera hint: evening light through the window, warm muted palette of terracotta and teal, intimate close-up shot, wide shot.
- Works for people, but also for interiors, still life, landscapes with tiny figures, old towns and night scenes.
License
Released under the FLUX.1 [dev] Non-Commercial License (non-commercial use only). Training images were generated with a third-party LoRA that does not declare a license; check that repo before any commercial use.
Creator
SM Shahbaj · huggingface.co/smshahbaj
- Downloads last month
- 35
Model tree for smshahbaj/RIFA-Illustration
Base model
black-forest-labs/FLUX.1-dev