Instructions to use smshahbaj/RIFA-Somov with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use smshahbaj/RIFA-Somov 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-Somov") prompt = "rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, A masked ball on a grand staircase, a lady in a pale green gown and a black mask descending beside a harlequin, chandeliers glowing." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
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-Somov")
prompt = "rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, A masked ball on a grand staircase, a lady in a pale green gown and a black mask descending beside a harlequin, chandeliers glowing."
image = pipe(prompt).images[0]π RIFA Somov
A refined, pastel-toned carnival & masquerade painting style for FLUX.1-dev
Trigger phrase: rifa somov
β¨ About
RIFA Somov is a FLUX.1-dev LoRA for delicate, finely painted carnivalesque scenes: Harlequin and Pierrot, masquerade balls, garden fΓͺtes, candlelit theatres, moonlit terraces and snowy winter carnivals β in dusty pastels, porcelain whites and soft gouache colors with touches of gold.
It is a gentle fine-tune of an existing Silver Ageβinspired style LoRA (source LoRA), trained to stay stable at 768 β 1024 px and to respond to a short, dedicated trigger (rifa somov).
Created by SM Shahbaj as part of the RIFA project family.
πΌοΈ Examples
All examples use held-out prompts (not seen during training).
1. Masked ball on the grand staircase
Prompt: rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, A masked ball on a grand staircase, a lady in a pale green gown and a black mask descending beside a harlequin, chandeliers glowing.
2. Pierrot & Columbine under one umbrella
Prompt: rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, Pierrot and Columbine sharing an umbrella in a rainy garden, paper lanterns glowing, pastel colors.
3. Poet at the snowy window
Prompt: rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, A portrait of a poet in a frock coat holding a white mask beside a window with falling snow.
4. Carnival procession at dusk
Prompt: rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, A carnival procession crossing a stone bridge at dusk, musicians, paper lanterns and costumed dancers.
5. Teapot, mask & roses still life
Prompt: rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, A still life of a porcelain teapot, a feathered mask, roses and a candle on a lace tablecloth.
6. Garden swing under blossoms
Prompt: rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, Two girls in pastel silk dresses laughing on a garden swing under blossoming trees, a harlequin watching from a pavilion.
π 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-Somov")
# or: pipe.load_lora_weights("smshahbaj/RIFA-Somov", weight_name="RIFA-Somov.safetensors")
pipe.enable_model_cpu_offload()
prompt = (
"rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, "
"Harlequin and Columbine dancing on a lantern-lit garden terrace at dusk, "
"powdery pastel palette of rose, ivory and pale blue, soft overcast daylight."
)
image = pipe(
prompt,
num_inference_steps=28,
guidance_scale=3.5,
height=1024,
width=1024,
).images[0]
image.save("rifa_somov.png")
Prompt format used in training:
rifa somov, Somov style art, artwork by Konstantin Somov, detailed carnivalesque illustration, <your scene>
Always start with the trigger rifa somov; keeping the following style words gives the most faithful look.
π‘ Prompt tips
- Describe the scene first, then palette, light and composition β this is how the training prompts were written.
- Palettes that work well: powdery pastel rose, ivory and pale blue, dusty blue and pearl gray with touches of vermilion, muted sage green, cream and faded crimson, soft gouache with delicate gold highlights.
- Lighting words: soft overcast daylight, warm candlelit glow, moonlight and glowing paper lanterns, diffused daylight through lace curtains.
- Strongest subjects: commedia dell'arte characters, masquerade balls, garden fΓͺtes, theatre & backstage, portraits, interiors and still life, winter carnivals, night-and-water scenes, fairs and circuses.
- Best at 1024 px (768 px also works well). 28 steps, guidance 3.5 are good defaults.
π§ Training details
| Base model | black-forest-labs/FLUX.1-dev |
| Starting point | Source LoRA (rank 64), fine-tuned further |
| Method | Self-distillation + multi-resolution fine-tune |
| Training data | 108 synthetic images (1024 px, generated with the source LoRA: 1024px/28 steps) |
| Captions | rifa somov, <source style prefix>, <scene> |
| Training resolutions | 768 + 1024 px (mixed) |
| Steps / LR | 600 steps, learning rate 3e-05 |
| Precision | fp16 + GradScaler |
| Trained parts | Transformer only |
π¦ What's included
| File | Description |
|---|---|
pytorch_lora_weights.safetensors |
Standard Diffusers format |
RIFA-Somov.safetensors |
Single-file copy (ComfyUI / other UIs) |
training_config.json |
Training settings used for this release |
checkpoints/ |
Intermediate training checkpoints (every 150 steps) |
showcase/ |
Example images |
β οΈ Limitations
- This is a gentle fine-tune of an existing style LoRA, so the style stays close to its source; the aim is stability, resolution robustness and a dedicated trigger β not a completely new look.
- Trained on synthetic images; very modern subjects (cars, screens, logos) may drift from the style.
- Faces and hands can still show typical FLUX imperfections at small sizes.
π License
Released under the FLUX.1 [dev] Non-Commercial License β non-commercial use only. See the full license. The source LoRA has its own terms β please check its model page too.
π Credits
- Base model: FLUX.1-dev by Black Forest Labs
- Source LoRA: AlekseyCalvin/Somov_Carnivalesques_V2_FluxLoRA_bySilverAgePoets
π€ Creator
SM Shahbaj β huggingface.co/smshahbaj
Made with love for RIFA
- Downloads last month
- 3
Model tree for smshahbaj/RIFA-Somov
Base model
black-forest-labs/FLUX.1-dev