Run this model with HF Jobs
Run prithivMLmods/Pastel-BG-Flux-LoRA on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/prithivMLmods/Pastel-BG-Flux-LoRA. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/prithivMLmods/Pastel-BG-Flux-LoRA on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use prithivMLmods/Pastel-BG-Flux-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use prithivMLmods/Pastel-BG-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/Pastel-BG-Flux-LoRA") prompt = "Pastel BG, a young woman with brown hair and blue eyes stands in front of a colorful backdrop. The womans face is adorned with freckles, adding a pop of color to her outfit. The backdrop is a vibrant shade of purple, with yellow stars and stripes on it." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download README.md from prithivMLmods/Pastel-BG-Flux-LoRA: direct link, hf CLI and curl.
- Browser
- Download file 3.03 kB
-
https://huggingface.co/prithivMLmods/Pastel-BG-Flux-LoRA/resolve/main/README.md
- Command line
-
hf download hf://prithivMLmods/Pastel-BG-Flux-LoRA/README.md
-
curl -L -o README.md https://huggingface.co/prithivMLmods/Pastel-BG-Flux-LoRA/resolve/main/README.md
3.03 kB
metadata
tags:
- text-to-image
- lora
- diffusers
- template:diffusion-lora
- Pastel
widget:
- text: >-
Pastel BG, a young woman with brown hair and blue eyes stands in front of
a colorful backdrop. The womans face is adorned with freckles, adding a
pop of color to her outfit. The backdrop is a vibrant shade of purple,
with yellow stars and stripes on it.
output:
url: images/PB1.png
- text: >-
Pastel BG, An eye-level view of a gray tabby cat with long white whiskers
and a pink nose. The cats head is tilted slightly to the right, and its
eyes are wide open. Its ears are pointed up, and the cats fur is a mix of
gray and black. The background is a combination of pink, purple, and
yellow, with white dots dotting the background. To the left of the cat,
there is a purple star with a white butterfly on it.
output:
url: images/PB2.png
- text: >-
Pastel BG, a man stands in front of a colorful backdrop. He is dressed in
a light pink suit jacket, a yellow collared shirt, and a pair of
sunglasses. His hair is styled in a short bob, and his eyes are slightly
open. His lips are slightly parted, as if he is looking to the right. The
backdrop is a combination of pink, yellow, and green, with small white
stars on the right side of the wall.
output:
url: images/PB3.png
base_model: black-forest-labs/FLUX.1-dev
instance_prompt: Pastel BG
license: creativeml-openrail-m
Pastel-BG-Flux-LoRA

- Prompt
- Pastel BG, a young woman with brown hair and blue eyes stands in front of a colorful backdrop. The womans face is adorned with freckles, adding a pop of color to her outfit. The backdrop is a vibrant shade of purple, with yellow stars and stripes on it.

- Prompt
- Pastel BG, An eye-level view of a gray tabby cat with long white whiskers and a pink nose. The cats head is tilted slightly to the right, and its eyes are wide open. Its ears are pointed up, and the cats fur is a mix of gray and black. The background is a combination of pink, purple, and yellow, with white dots dotting the background. To the left of the cat, there is a purple star with a white butterfly on it.

- Prompt
- Pastel BG, a man stands in front of a colorful backdrop. He is dressed in a light pink suit jacket, a yellow collared shirt, and a pair of sunglasses. His hair is styled in a short bob, and his eyes are slightly open. His lips are slightly parted, as if he is looking to the right. The backdrop is a combination of pink, yellow, and green, with small white stars on the right side of the wall.
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/Pastel-BG-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 | 28 & 3340 |
| Epoch | 15 | Save Every N Epochs | 1 |
Labeling: florence2-en(natural language & English)
Total Images Used for Training : 18 [ Hi-RES ]
Best Dimensions
- 1024 x 1024 (Default)
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/Pastel-BG-Flux-LoRA"
trigger_word = "Pastel BG"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
Trigger words
You should use Pastel BG to trigger the image generation.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.