re-mix-1/rembg 🖼️📝✓🔢 → 🖼️
About
Implementation of the RemBG library
Example Output
Output
Performance Metrics
12.82s
Prediction Time
91.09s
Total Time
Input Parameters
- image
- Input image path string
- model
- Model type for background removal (u2net, u2netp, u2net_human_seg, u2net_cloth_seg, silueta, isnet-general-use)
- use_gpu
- Use GPU for processing
- alpha_matting
- Apply alpha matting
- always_return_png
- Always return PNG image (preserves transparent background with JPEG input)
- post_process_mask
- Post-process mask to get better results
- alpha_matting_erode_size
- Erosion size for alpha matting
- alpha_matting_background_threshold
- Background threshold for alpha matting
- alpha_matting_foreground_threshold
- Foreground threshold for alpha matting
Output Schema
Output
Example Execution Logs
Downloading data from 'https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx' to file '/root/.u2net/u2net.onnx'. 0%| | 0.00/176M [00:00<?, ?B/s] 1%|▍ | 2.19M/176M [00:00<00:07, 21.9MB/s] 4%|█▍ | 6.57M/176M [00:00<00:04, 34.8MB/s] 7%|██▍ | 11.5M/176M [00:00<00:03, 41.5MB/s] 9%|███▌ | 16.7M/176M [00:00<00:03, 45.5MB/s] 12%|████▋ | 22.0M/176M [00:00<00:03, 48.1MB/s] 15%|█████▊ | 26.9M/176M [00:00<00:03, 48.6MB/s] 18%|██████▊ | 31.8M/176M [00:00<00:03, 47.3MB/s] 21%|███████▉ | 36.8M/176M [00:00<00:02, 48.2MB/s] 24%|█████████ | 42.0M/176M [00:00<00:02, 49.4MB/s] 27%|██████████▏ | 47.0M/176M [00:01<00:02, 49.4MB/s] 29%|███████████▏ | 51.9M/176M [00:01<00:02, 49.3MB/s] 32%|████████████▎ | 56.8M/176M [00:01<00:02, 49.1MB/s] 35%|█████████████▎ | 61.8M/176M [00:01<00:02, 49.3MB/s] 38%|██████████████▍ | 66.9M/176M [00:01<00:02, 49.8MB/s] 41%|███████████████▌ | 72.3M/176M [00:01<00:02, 51.1MB/s] 44%|████████████████▋ | 77.4M/176M [00:01<00:01, 50.3MB/s] 47%|█████████████████▊ | 82.4M/176M [00:01<00:01, 49.6MB/s] 50%|██████████████████▊ | 87.4M/176M [00:01<00:01, 49.0MB/s] 52%|███████████████████▉ | 92.3M/176M [00:01<00:01, 49.0MB/s] 55%|████████████████████▉ | 97.2M/176M [00:02<00:01, 48.5MB/s] 58%|██████████████████████▌ | 102M/176M [00:02<00:01, 48.3MB/s] 61%|███████████████████████▋ | 107M/176M [00:02<00:01, 47.5MB/s] 64%|████████████████████████▊ | 112M/176M [00:02<00:01, 47.9MB/s] 66%|█████████████████████████▉ | 117M/176M [00:02<00:01, 49.1MB/s] 69%|███████████████████████████ | 122M/176M [00:02<00:01, 50.3MB/s] 72%|████████████████████████████▏ | 127M/176M [00:02<00:00, 50.7MB/s] 75%|█████████████████████████████▎ | 133M/176M [00:02<00:00, 48.1MB/s] 78%|██████████████████████████████▍ | 138M/176M [00:02<00:00, 48.5MB/s] 81%|███████████████████████████████▌ | 142M/176M [00:02<00:00, 47.9MB/s] 84%|████████████████████████████████▌ | 147M/176M [00:03<00:00, 46.9MB/s] 87%|█████████████████████████████████▊ | 152M/176M [00:03<00:00, 48.3MB/s] 90%|██████████████████████████████████▉ | 158M/176M [00:03<00:00, 49.7MB/s] 92%|████████████████████████████████████ | 163M/176M [00:03<00:00, 50.1MB/s] 95%|█████████████████████████████████████▏ | 168M/176M [00:03<00:00, 49.2MB/s] 98%|██████████████████████████████████████▎| 173M/176M [00:03<00:00, 49.7MB/s] 0%| | 0.00/176M [00:00<?, ?B/s] 100%|████████████████████████████████████████| 176M/176M [00:00<00:00, 476GB/s]
Version Details
- Version ID
fbb788e8d4a54338e157ec412fec10d4494321ecdc5c625aa07b248c7c5163ff- Version Created
- May 10, 2024