Skip to content
forked from xuebinqin/DIS

Open Remove Background Model (ormbg) - Highly Accurate Image Segmentation

Notifications You must be signed in to change notification settings

schirrmacher/ormbg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title license tags pretty_name models datasets emoji colorFrom colorTo sdk sdk_version app_file pinned
Open Remove Background Model (ormbg)
apache-2.0
segmentation
remove background
background
background-removal
Pytorch
Open Remove Background Model
schirrmacher/ormbg
schirrmacher/humans
💻
red
red
gradio
4.29.0
hf_space/app.py
false

Open Remove Background Model (ormbg)

>>> DEMO <<<

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.

Inference

python ormbg/inference.py

Training

Install dependencies:

conda env create -f environment.yaml
conda activate ormbg

Replace dummy dataset with training dataset.

python3 ormbg/train_model.py

Research

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).

Next steps:

  • Expand dataset with synthetic and real images
  • Research on state of the art loss functions

Latest changes (26/07/2024):

  • Created synthetic dataset with 10k images, crafted with BlenderProc
  • Removed training data created with LayerDiffuse, since it lacks the accuracy needed
  • Improved model performance (after 100k iterations):

05/07/2024

  • Added P3M-10K dataset for training and validation
  • Added AIM-500 dataset for training and validation
  • Added PPM-100 dataset for training and validation
  • Applied Grid Dropout to make the model smarter

About

Open Remove Background Model (ormbg) - Highly Accurate Image Segmentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%