Downloads · 30 days
0
schirrmacher/ormbg
ormbg is a machine learning model from schirrmacher. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Sep 29, 2024
Repo size
1.3 GB
Likes
66
Public
Click a slice to open those files.
.pth353 MB · 60%
From the Hugging Face model README
Join our Research Discord Group!

This model is a fully open-source background remover optimized for images with humans. It is based on Highly Accurate Dichotomous Image Segmentation research.
python ormbg/inference.py
Install dependencies:
conda env create -f environment.yaml
conda activate ormbg
Replace dummy dataset with training dataset.
python3 ormbg/train_model.py
I started training the model with synthetic images of the Human Segmentation Dataset crafted with LayerDiffuse. However, I noticed that the model struggles to perform well on real images.
Synthetic datasets have limitations for achieving great segmentation results. This is because artificial lighting, occlusion, scale or backgrounds create a gap between synthetic and real images. A "model trained solely on synthetic data generated with naïve domain randomization struggles to generalize on the real domain", see PEOPLESANSPEOPLE: A Synthetic Data Generator for Human-Centric Computer Vision (2022).