Instructions to use smshahbaj/RIFA-Artbook with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use smshahbaj/RIFA-Artbook with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("smshahbaj/RIFA-Artbook") prompt = "a fox reading a book by candlelight, in the style of RIFA's Artbook" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
π¨ RIFA's Artbook
A warm, hand-painted storybook illustration style
Trigger phrase: in the style of RIFA's Artbook
β¨ About
RIFA's Artbook is a model that turns ordinary prompts into soft, cozy, storybook-style illustrations.
Gentle characters, golden light, whimsical animals, quiet libraries, rainy-day umbrellas and small magical moments β the kind of pictures you find in the best children's books.
Created by SM Shahbaj as part of the RIFA project family.
πΌοΈ Examples
1. Fox reading by candlelight
Prompt: a fox reading a book by candlelight, in the style of RIFA's Artbook
2. Sleepy dragon on a pile of books
Prompt: a small dragon sleeping on a pile of books, in the style of RIFA's Artbook
3. Lighthouse at sunset
Prompt: a lighthouse on a cliff at sunset, in the style of RIFA's Artbook
4. Picnic with a bear
Prompt: a girl having a picnic with a bear, in the style of RIFA's Artbook
5. Hot air balloon over mountains
Prompt: a hot air balloon floating over mountains, in the style of RIFA's Artbook
6. Cat baker
Prompt: a cat baker pulling bread from an oven, in the style of RIFA's Artbook
π 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-Artbook")
# or: pipe.load_lora_weights("smshahbaj/RIFA-Artbook", weight_name="RIFA-Artbook.safetensors")
pipe.enable_model_cpu_offload()
image = pipe(
"a small dragon curled around a treasure chest, in the style of RIFA's Artbook",
num_inference_steps=24,
guidance_scale=3.5,
height=768,
width=768,
).images[0]
image.save("rifa_artbook.png")
Always include the trigger: in the style of RIFA's Artbook
π‘ Prompt tips
- Put the trigger phrase at the end of the prompt.
- Lighting words work beautifully: warm golden light, soft moonlight, candlelight, morning glow.
- Simple, clear subjects give the most charming results.
- Great with animals, children, fantasy creatures, quiet places and everyday magic.
- Trained at 512px; 512β768px gives the most consistent style.
π¦ What's included
| File | Description |
|---|---|
pytorch_lora_weights.safetensors |
Standard Diffusers format |
RIFA-Artbook.safetensors |
Single-file version (ComfyUI / other UIs) |
training_config.json |
Training hyperparameters |
inference.py |
Ready-to-run Python example |
comfyui_workflow_RIFA_Artbook.json |
Basic ComfyUI workflow |
showcase/ |
Example images |
π License
Released under the FLUX.1 [dev] Non-Commercial License β non-commercial use only. See the full license.
π€ Creator
SM Shahbaj β huggingface.co/smshahbaj
Made with love for RIFA
- Downloads last month
- -