🚀 Thread-of-Art-Flux
Thread-of-Art-Flux is a text - to - image model based on LoRA and Diffusers. It can generate high - quality black and white sketches according to specific text prompts.
🚀 Quick Start
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 = "strangerzonehf/Thread-of-Art-Flux"
trigger_word = "Thread of Art"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
Trigger words
You should use Thread of Art
to trigger the image generation.
✨ Features
This model can generate black and white sketches of various scenes and characters, such as women smoking cigarettes, men's head sketches, men sitting at café tables, and men leaning against railings.
📦 Installation
No specific installation steps are provided in the original document, so this section is skipped.
💻 Usage Examples
Basic Usage
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 = "strangerzonehf/Thread-of-Art-Flux"
trigger_word = "Thread of Art"
pipe.load_lora_weights(lora_repo)
device = torch.device("cuda")
pipe.to(device)
prompt = "Thread of Art, A black and white sketch of a woman smoking a cigarette. The woman is wearing a white button up shirt, a black tie, and white pants. Her hair is pulled back in a ponytail, and she is wearing a pair of white gloves. Her left hand is raised in the air, while her right hand is resting on her hip. Her mouth is slightly open, as if she is smoking. She has a black belt around her waist, and a white jacket on her right. The background is a plain white."
image = pipe(prompt).images[0]
image.save("generated_image.png")
📚 Documentation
Model description for Thread-of-Art-Flux
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 |
20 & 3200 |
Epoch |
25 |
Save Every N Epochs |
1 |
Labeling: florence2 - en(natural language & English)
Total Images Used for Training : 26
Best Dimensions & Inference
Dimensions |
Aspect Ratio |
Recommendation |
1280 x 832 |
3:2 |
Best |
1024 x 1024 |
1:1 |
Default |
Inference Range
- Recommended Inference Steps: 30–35
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
📄 License
This model uses the flux - 1 - dev - non - commercial - license
. You can view the full license details here.
