ONNX Model Zoo

Muhammad8815/inno-rmbg-removal-8815

By Muhammad8815 · ↓ 0 · ♥ 0 · Updated 2025-08-04

What's in this repo

This page lists the files in Muhammad8815/inno-rmbg-removal-8815, including model.onnx, model_fp16.onnx, model_quantized.onnx.

  • 3 ONNX models (.onnx files)
  • 21 files, including 6 .py, 3 .json, 3 .onnx, 2 .png, 1 .md, 1 .jpg
  • Last updated 2025-08-04

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_fp16.onnx — Download
onnx/model_quantized.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README


title: Inno Background Remover emoji: 🪄 colorFrom: pink colorTo: purple sdk: gradio sdk_version: "4.19.2" app_file: app.py pinned: false

🪄 Inno RMBG Removal v1.0

This Space runs a custom-trained image background removal model using PyTorch and ONNX.
It performs pixel-wise background removal on input images with high accuracy using a Gradio interface.


✨ Model Highlights

  • Trained on diverse images of objects, people, and scenes.
  • Outputs a binary mask of the foreground.
  • Works with .pth and ONNX formats.
  • Useful for background replacement or transparent cutouts.

📦 Input / Output

Input Image:

example input

Output (no background):

result


🧪 How It Works

  1. Upload an image using the UI.
  2. The model generates a mask for the foreground.
  3. The output is a transparent PNG or white background version.

⚙️ Inference Code (example)

from PIL import Image
from utilities import preprocess_image, postprocess_image, load_model

model = load_model("model.pth")
image = Image.open("example_input.jpg")
mask = model.predict(image)
image.putalpha(mask)
image.save("output.png")

Model info

pytorch onnx safetensors SegformerForSemanticSegmentation custom_code region:us
↓ 0 ♥ 0

Created: 2025-07-28

Updated: 2025-08-04

View on Hugging Face

Files (21)

.gitattributes
MyConfig.py
MyPipe.py
README.md
app.py
briarmbg.py
config.json
example_inference.py
example_input.jpg
model.pth
model.safetensors
onnx/model.onnx ONNX
onnx/model_fp16.onnx ONNX
onnx/model_quantized.onnx ONNX
onnx/quantize_config.json
preprocessor_config.json
pytorch_model.bin
requirements.txt
results.png
t4.png
utilities.py

Related models