Background removal models work best when the subject is clear, well-framed, and visually separated from the background. Following the guidelines below will help produce cleaner edges, fewer artifacts, and more accurate cutouts.
Quick takeaway: Clear subjects, square-ish framing, and high-quality (lossless) images lead to the most accurate results.
Prefer square or near-square aspect ratios
BackgroundErase models are optimized around fixed internal resolutions. Images that are closer to a square aspect ratio tend to preserve more detail across the subject and produce more accurate masks.
- Square or near-square images distribute resolution more evenly.
- Extreme wide or tall images may lose fine details after resizing.
- If possible, crop your image so the subject fills most of a square frame before uploading.
Use lossless formats when accuracy matters
Lossy compression can blur edges and remove subtle details that are important for clean cutouts (like hair, fur, or thin objects).
- Preferred: PNG, TIFF, or lossless WebP.
- Acceptable: High-quality JPGs when file size or latency is more important than perfect edges.
- For best results, avoid repeatedly re-saving the same image as JPG.
Ensure a clear, well-defined foreground
Background removal models rely on visual contrast between the foreground and the background. Images where the subject blends into the background are harder to segment accurately.
- Choose backgrounds that contrast with the subject’s color and texture.
- Avoid backgrounds with similar patterns or colors to the foreground.
- Good lighting helps separate edges and reduces noise.
Start with sufficient resolution
Higher-resolution images contain more edge information, which helps the model identify fine details like hair strands, transparent objects, and thin structures.
- Use the highest-quality original image available.
- Avoid heavily downscaled or blurry sources.
- Full Resolution downloads preserve these details for final output.
Frame the subject clearly
Images work best when the main subject is clearly visible and not cut off.
- Avoid cropping important parts of the subject (hands, feet, edges of products).
- Keep the subject fully inside the frame.
- Centering the subject can help with consistency.
Summary
- Crop toward a square aspect ratio when possible.
- Use lossless formats if accuracy is more important than speed.
- Ensure strong contrast between foreground and background.
- Start with high-resolution, well-lit images.
