BiRefNet-portrait 1024 (ONNX FP16 for Browser WebGPU)

WebGPU-compatible ONNX FP16 graph rewrite of ZhengPeng7/BiRefNet-portrait (starting from onnx-community/BiRefNet-portrait-ONNX).

  • Weights: Unchanged (ZhengPeng7/BiRefNet-portrait, MIT license).
  • Graph rewrite (following wonfy's MIT WebGPU patch):
    • Constant folding (21,968 -> 6,409 nodes)
    • Concat / Split tree decomposition (<= 7 storage buffers per op, under WebGPU's 8-buffer limit)
    • Sum -> Add chains; GatherND + int64 index math -> Gather + int32 (0 int64 ops remaining)
    • FP16 weights with float32 I/O (keep_io_types=True)
  • I/O:
    • Input: input_image float32 [1, 3, 1024, 1024] RGB normalized with ImageNet mean [0.485, 0.456, 0.406], std [0.229, 0.224, 0.225].
    • Output: output_image float32 [1, 1, 1024, 1024] logits (alpha = sigmoid(output_image)).
  • File: onnx/model_fp16.onnx (520175713 bytes ยท SHA-256 ea747213c9fb9051ec0db19627fdd80b691fe03f4f7187f711de864ba6404b11)

License & Credits

  • Original model & weights: Peng Zheng et al. (ZhengPeng7/BiRefNet, MIT License).
  • Graph rewrite methodology: wonfy/BiRefNet-ONNX-webgpu (MIT License).
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for neonmedia/birefnet-portrait-webgpu

Quantized
(2)
this model