Instructions to use prithivMLmods/Castor-Red-Dead-Redemption-2-Flux-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use prithivMLmods/Castor-Red-Dead-Redemption-2-Flux-LoRA 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("prithivMLmods/Castor-Red-Dead-Redemption-2-Flux-LoRA") prompt = "Red Dead Redemption 2, Captured on a vibrant red backdrop, a painting of a cowboy, holding a gun in his right hand. The cowboy, dressed in a black cowboy hat, is adorned with a white stripe down the center of his chest, adding a pop of color to the scene. Hes wearing a black and white striped shirt, a black jacket, and a black belt around his neck. His beard is neatly trimmed, and he has a black mustache and beard. His left hand is raised in the air, aiming the gun at the camera. To the right of the cowboy, a group of men on horses are visible, their heads turned to the right. They are dressed in dark clothing, and the background features a yellow circle with trees in the center." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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("prithivMLmods/Castor-Red-Dead-Redemption-2-Flux-LoRA")
prompt = "Red Dead Redemption 2, Captured on a vibrant red backdrop, a painting of a cowboy, holding a gun in his right hand. The cowboy, dressed in a black cowboy hat, is adorned with a white stripe down the center of his chest, adding a pop of color to the scene. Hes wearing a black and white striped shirt, a black jacket, and a black belt around his neck. His beard is neatly trimmed, and he has a black mustache and beard. His left hand is raised in the air, aiming the gun at the camera. To the right of the cowboy, a group of men on horses are visible, their heads turned to the right. They are dressed in dark clothing, and the background features a yellow circle with trees in the center."
image = pipe(prompt).images[0]Castor-Red-Dead-Redemption-2-Flux-LoRA
-- Dropping in honor of the sixth anniversary of RDR2. π€ --
Demoing rn :https://huggingface.co/spaces/prithivMLmods/FLUX-LoRA-DLC

- Prompt
- Red Dead Redemption 2, Captured on a vibrant red backdrop, a painting of a cowboy, holding a gun in his right hand. The cowboy, dressed in a black cowboy hat, is adorned with a white stripe down the center of his chest, adding a pop of color to the scene. Hes wearing a black and white striped shirt, a black jacket, and a black belt around his neck. His beard is neatly trimmed, and he has a black mustache and beard. His left hand is raised in the air, aiming the gun at the camera. To the right of the cowboy, a group of men on horses are visible, their heads turned to the right. They are dressed in dark clothing, and the background features a yellow circle with trees in the center.

- Prompt
- Red Dead Redemption 2, Against a shadowy, moonlit forest backdrop, a solitary cowboy leans against a towering pine tree, observing a distant campfire where silhouettes of outlaws are gathered. Dressed in a dark poncho, a wide-brimmed hat, and a bullet belt across his chest, he holds a rifle close to his side. His face is mostly hidden, but the glint in his eyes reveals a careful calculation. Mist curls around his feet as he quietly watches, waiting for the right moment to strike. The blue-gray hues of the night cast an eerie calm over the tense scene.

- Prompt
- Red Dead Redemption 2, Set against a warm, golden sunset, a lone cowboy stands under the arched shadows of a decaying ghost town. His figure is silhouetted, his hands resting calmly on his gun holsters as he watches the sun dip behind distant hills. He wears a wide-brimmed hat and a long duster that flaps gently in the breeze. Shadows stretch across the dusty street in front of him, and a tumbleweed rolls past, giving the scene an air of quiet anticipation and forgotten memories.
The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.
Model description
prithivMLmods/Castor-Red-Dead-Redemption-2-Flux-LoRA
Image Processing Parameters
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| LR Scheduler | constant | Noise Offset | 0.03 |
| Optimizer | AdamW | Multires Noise Discount | 0.1 |
| Network Dim | 64 | Multires Noise Iterations | 10 |
| Network Alpha | 32 | Repeat & Steps | 22 & 2K |
| Epoch | 12 | Save Every N Epochs | 1 |
Labeling: florence2-en(natural language & English)
Total Images Used for Training : 19
Setting Up
import torch
from pipelines import DiffusionPipeline
base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
lora_repo = "prithivMLmods/Castor-Red-Dead-Redemption-2-Flux-LoRA"
trigger_word = "Red Dead Redemption 2" # Leave trigger_word blank if not used.
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
App File Structure
/project-root/
βββ .gitattributes
βββ README.md
βββ app.py
βββ pythonproject.py
Best Dimensions
- 512 X 512
- 1024 X 1024
- 768 X 1024
Trigger words π§¨
Trigger words: You should use
Red Dead Redemption 2to trigger the image generation.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
SDXL LoRA
π€ : https://huggingface.co/prithivMLmods/Canopus-Red-Dead-Minimalize-LoRA
- Downloads last month
- 23
Model tree for prithivMLmods/Castor-Red-Dead-Redemption-2-Flux-LoRA
Base model
black-forest-labs/FLUX.1-dev