BEN3 (ONNX)
Single-file ONNX export of PramaLLC/BEN3 (Background Erase Network 3) for local inference with ONNX Runtime and ONNX Runtime Web.
Upstream Attribution & License
- Original model & code: PramaLLC/BEN3 / GitHub
- License: MIT
- Source code revision:
82d2ba23dcfd493c3b2fbdc405b6fe648bb0da5e - Source weights (
ben3.pth) revision:8fcb663279a0865e4a038defec02d1c84dc7f4c5(SHA-2569cdac727cb8df75158fc996af8c311b5f61590e638710b6b8af3c6eee4f90e97)
Model Interface
- File:
ben3.onnx(self-contained single file, ONNX opset 18, FP32) - Size:
434057333bytes - SHA-256:
798ff57f5cd8eef08eb8475f663369644ace44af14e2f3f261146e2322379af2 - Input (
input):float32[1, 3, 1024, 1024], RGB in[0, 1]normalized with ImageNet mean[0.485, 0.456, 0.406]and std[0.229, 0.224, 0.225] - Output (
alpha):float32[1, 1, 1024, 1024], winning-hypothesis foreground alpha matte in[0, 1](already passed throughsigmoidandaux_out.argmax(dim=1)selection)
Verification
Verified against the original PyTorch BEN3 model in ONNX Runtime (max_abs_diff = 0.000000).
Model tree for Crealika/BEN3-ONNX
Base model
PramaLLC/BEN3