Image Segmentation
Core ML
BiRefNet
English
RMBG-2-CoreML
background-removal
apple-neural-engine
rmbg
Instructions to use VincentGOURBIN/RMBG-2-CoreML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use VincentGOURBIN/RMBG-2-CoreML with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("VincentGOURBIN/RMBG-2-CoreML", trust_remote_code=True)# Option 2: use with BiRefNet # Install from https://github.com/ZhengPeng7/BiRefNet from models.birefnet import BiRefNet model = BiRefNet.from_pretrained("VincentGOURBIN/RMBG-2-CoreML") - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_type": "RMBG-2-CoreML", | |
| "architecture": "BiRefNet", | |
| "input_size": 1024, | |
| "input_format": "NCHW", | |
| "input_channels": 3, | |
| "normalization": { | |
| "mean": [0.485, 0.456, 0.406], | |
| "std": [0.229, 0.224, 0.225] | |
| }, | |
| "outputs": ["output_0", "output_1", "output_2", "output_3"], | |
| "primary_output": "output_3", | |
| "format": "mlpackage", | |
| "weight_quantization": "int8_symmetric_linear", | |
| "model_size_mb": 233, | |
| "compute_units": "all", | |
| "minimum_deployment_target": { | |
| "macOS": "13.0", | |
| "iOS": "16.0" | |
| }, | |
| "original_model": "briaai/RMBG-2.0", | |
| "license": "CC-BY-NC-4.0", | |
| "version": "1.1.0" | |
| } | |