Background Removal
VariantLab can automatically remove backgrounds from your images using AI-powered segmentation models.
How It Works
Background removal uses machine learning to:
- Detect the foreground subject
- Create a mask separating subject from background
- Remove background pixels
- Replace with transparency
The result is a PNG with a transparent background.
When to Use
Before Generation
Enable Remove Background in Setup settings:
- Background removed automatically after generation
- Original with background is preserved
- Can restore original later
After Generation
Click the magic wand icon on any base image:
- Removes background from existing image
- Uses currently selected model
- Original is preserved
Removal Models
VariantLab offers 7 background removal models:
U2Net Fast
- Speed: Fastest
- Best for: General purpose, quick previews
- Quality: Good
ISNet General
- Speed: Fast
- Best for: Digital art, clip art, illustrations
- Quality: Very good for flat styles
U2Net Pro
- Speed: Medium
- Best for: High quality general segmentation
- Quality: Excellent
U2Net Cloth
- Speed: Medium
- Best for: Clothing, textiles, fashion
- Quality: Specialized
U2Net Human
- Speed: Medium
- Best for: People, portraits, characters
- Quality: Specialized for humans
Silueta
- Speed: Medium
- Best for: High quality general segmentation
- Quality: Excellent
ISNet Anime
- Speed: Fast
- Best for: Anime, manga, cartoon styles
- Quality: Specialized for anime
Choosing a Model
| Image Type | Recommended Model |
|---|---|
| General/Mixed | U2Net Fast or Silueta |
| Digital art | ISNet General |
| Anime/Cartoon | ISNet Anime |
| People/Characters | U2Net Human |
| Clothing/Fashion | U2Net Cloth |
| High quality needed | U2Net Pro or Silueta |
| Quick preview | U2Net Fast |
Tips for Better Results
Image Composition
- Clear subject - Subject should be distinct from background
- Contrast - Different colors help separation
- Clean edges - Avoid subjects that blend into background
Prompt Tips
When generating images, include:
...centered, solid white background, full body visible
This creates images that are easier to segment.
Model Selection
- Start with U2Net Fast for quick tests
- Switch to specialized models if needed
- Use Silueta or U2Net Pro for final quality
Restoring Original
If you've removed the background:
- Click the undo icon on the image
- The original (with background) is restored
- You can remove the background again anytime
The original is always preserved internally.
Background Removal vs. Trait Masks
These serve different purposes:
| Feature | Background Removal | Trait Masks |
|---|---|---|
| Purpose | Remove image background | Define trait regions |
| Scope | Entire background | Specific traits |
| Editing | Automatic only | Manual refinement |
| Use case | Clean base images | Layer extraction |
You might use both:
- Remove background from base image
- Create trait masks for variations
- Extract layers with clean edges
Troubleshooting
Background not fully removed
- Try a different model
- Image may have low contrast
- Some areas may need manual work in editing software
Subject partially removed
- Model may have misidentified foreground
- Try a different model
- Ensure subject is clearly distinct
Edges look rough
- Try Silueta or U2Net Pro for better edges
- May need post-processing in editing software
- Consider using trait masks for more control