Skip to content
ModelListedExternal
Download

EasyPortrait ONNX

ONNX exports of the pretrained EasyPortrait portrait segmentation and face parsing checkpoints.

KindOtherVersionRevision 19e22b9

Model source

Kind
Other
File size
5.33–251 MB
Version
vRevision 19e22b9
Updated
Sep 22, 2026
Downloads
0
Source
Hugging Face

Source description

EasyPortrait ONNX

ONNX exports of the pretrained EasyPortrait portrait segmentation and face parsing checkpoints.

The original checkpoints and training code were published by the EasyPortrait authors in hukenovs/easyportrait. This repository exists to make the models easier to use in modern runtimes, especially ComfyUI environments where installing the old mmsegmentation / mmcv-full stack can be slow or fragile.

Files

This repository contains 26 validated ONNX models and a manifest.json.

Model families:

  • Portrait segmentation:
    • BiSeNet-V2
    • DANet
    • DeepLabV3
    • FastSCNN
    • FCN + MobileNetV2
    • FPN + ResNet50 at 224, 384, 512, and 1024
    • SegFormer-B0 at 224, 384, 512, and 1024
  • Face parsing:
    • BiSeNet-V2
    • DANet
    • DeepLabV3
    • FastSCNN
    • FCN + MobileNetV2
    • FPN + ResNet50 at 224, 384, 512, and 1024
    • SegFormer-B0 at 224, 384, 512, and 1024

Three upstream README-only checkpoints are not included because they do not include enough model config metadata for reliable conversion: extremec3net_ps, sinet_ps, and ehanet_fp.

Input And Output

Each model expects a normalized tensor:

  • Input name: image
  • Input shape: [batch, 3, model_size, model_size]
  • Input dtype: float32
  • Channel order before normalization: BGR
  • Mean: [143.55267075, 132.96705975, 126.94924335]
  • Std: [60.2625333, 60.32740275, 59.30988645]

Each model returns logits:

  • Output name: logits
  • Output shape: [batch, classes, model_size, model_size]
  • Output dtype: float32

Use argmax(axis=1) to get the segmentation class map.

Labels:

  • Portrait segmentation: background, person
  • Face parsing: background, skin, left brow, right brow, left eye, right eye, lips, teeth

Validation

The ONNX models were exported from the original PyTorch/mmseg checkpoints and validated with ONNX Runtime against the PyTorch/mmseg output. The validation compares logits and verifies that the final argmax segmentation agrees.

See manifest.json for per-model metadata and validation values.

ComfyUI

These files are used by the ComfyUI custom node:

ComfyUI-EasyPortrait

The node downloads models from this repository on first use.

Credits

Thanks to the EasyPortrait authors for training and releasing the original models:

Co-authors of this ONNX conversion and ComfyUI integration:

  • sadzip
  • OpenAI Codex

Sources

1 source
Hugging FacePrimaryVersion 19e22b9d1bfd87e67b82e4b2749405686aeecba2
huggingface.co/sadzip/EasyPortrait-ONNX/tree/19e22b9d1bfd87e67b82e4b2749405686aeecba2

Verified Sep 8

Model artifacts

26 artifacts

bisenet_fp.onnx

onnx · 12.8 MB · SHA-256 9d9a67763bbb…4a30 · Hugging Face

Download

bisenet_ps.onnx

onnx · 12.8 MB · SHA-256 4faf226a5fc3…540e · Hugging Face

Download

danet_fp.onnx

onnx · 181 MB · SHA-256 d39da2c9e325…0d5f · Hugging Face

Download

danet_ps.onnx

onnx · 181 MB · SHA-256 d59ceca79c20…d1f8 · Hugging Face

Download

deeplabv3_fp.onnx

onnx · 251 MB · SHA-256 7ec62026a5ec…323e · Hugging Face

Download

deeplabv3_ps.onnx

onnx · 251 MB · SHA-256 ac06bf398b4a…97e9 · Hugging Face

Download

fastscnn_fp.onnx

onnx · 5.33 MB · SHA-256 bd3d50175f2d…4fd6 · Hugging Face

Download

fastscnn_ps.onnx

onnx · 5.33 MB · SHA-256 8ec349d0af3c…1e4c · Hugging Face

Download

fcn_mobilenetv2_fp.onnx

onnx · 36.2 MB · SHA-256 f649f30a4f00…c434 · Hugging Face

Download

fcn_mobilenetv2_ps.onnx

onnx · 36.2 MB · SHA-256 ae330b8db5d2…9c2c · Hugging Face

Download

fpn_resnet50_fp_1024.onnx

onnx · 109 MB · SHA-256 c25f62a6e508…2661 · Hugging Face

Download

fpn_resnet50_fp_224.onnx

onnx · 109 MB · SHA-256 0afe4b702e77…aa71 · Hugging Face

Download

fpn_resnet50_fp_384.onnx

onnx · 109 MB · SHA-256 9bb57a271553…59fa · Hugging Face

Download

fpn_resnet50_fp_512.onnx

onnx · 109 MB · SHA-256 cc5e9ce11c8e…7d15 · Hugging Face

Download

fpn_resnet50_ps_1024.onnx

onnx · 109 MB · SHA-256 63b95342695c…994b · Hugging Face

Download

fpn_resnet50_ps_224.onnx

onnx · 109 MB · SHA-256 db14830987f4…ca50 · Hugging Face

Download

fpn_resnet50_ps_384.onnx

onnx · 109 MB · SHA-256 0b848562be6a…4633 · Hugging Face

Download

fpn_resnet50_ps_512.onnx

onnx · 109 MB · SHA-256 6691da3d7863…e72f · Hugging Face

Download

segformer_b0_fp_1024.onnx

onnx · 14.5 MB · SHA-256 d3d2172f6fd2…9bdc · Hugging Face

Download

segformer_b0_fp_224.onnx

onnx · 14.5 MB · SHA-256 d0ebb5446148…4fb3 · Hugging Face

Download

segformer_b0_fp_384.onnx

onnx · 14.5 MB · SHA-256 cc1ae077dcf5…de67 · Hugging Face

Download

segformer_b0_fp_512.onnx

onnx · 14.5 MB · SHA-256 6be671f5cd14…2d0b · Hugging Face

Download

segformer_b0_ps_1024.onnx

onnx · 14.5 MB · SHA-256 92207bc052f8…3237 · Hugging Face

Download

segformer_b0_ps_224.onnx

onnx · 14.5 MB · SHA-256 a6fd3fc765b6…6e5a · Hugging Face

Download

segformer_b0_ps_384.onnx

onnx · 14.5 MB · SHA-256 87d7c4355319…1b59 · Hugging Face

Download

segformer_b0_ps_512.onnx

onnx · 14.5 MB · SHA-256 1836d3a6c041…43a4 · Hugging Face

Download

Source excerpts

2 excerpts

--- license: apache-2.0 library_name: onnx tags: - image-segmentation - face-parsing - portrait-segmentation - onnx - comfyui --- # EasyPortrait ONNX ONNX exports of the pretrained EasyPortrait portrait segmentation and face parsing checkpoints. The original checkpoints and training code were published by the EasyPortrait authors in [hukenovs/easyportrait](https://github.com/hukenovs/easyportrait). This repository exists to make the models easier to use in modern runtimes, especially ComfyUI environments where installing the old `mmsegmentation` / `mmcv-full` stack can be slow or fragile. ## Files This repository contains 26 validated ONNX models and a `manifest.json`. Model families: - Portrait segmentation: - BiSeNet-V2 - DANet - DeepLabV3 - FastSCNN - FCN + MobileNetV2 - FPN + ResNet50 at 224, 384, 512, and 1024 - SegFormer-B0 at 224, 384, 512, and 1024 - Face parsing: - BiSeNet-V2 - DANet - DeepLabV3 - FastSCNN - FCN + MobileNetV2 - FPN + ResNet50 at 224, 384, 512, and 1024 - SegFormer-B0 at 224, 384, 512, and 1024 Three upstream README-only checkpoints are not included because they do not include enough model config metadata for reliable conversion: `extremec3net_ps`, `sinet_ps`, and `ehanet_fp`. ## Input And Output Each model expects a normalized tensor: - Input name: `image` - Input shape: `[batch, 3, model_size, model_size]` - Input dtype: `float32` - Channel order before normalization: BGR - Mean: `[143.55267075, 132.96705975, 126.94924335]` - Std: `[60.2625333, 60.32740275, 59.30988645]` Each model returns logits: - Output name: `logits` - Output shape: `[batch, classes, model_size, model_size]` - Output dtype: `float32` Use `argmax(axis=1)` to get the segmentation class map. Labels: - Portrait segmentation: `background`, `person` - Face parsing: `background`, `skin`, `left brow`, `right brow`, `left eye`, `right eye`, `lips`, `teeth` ## Validation The ONNX models were exported from the original PyTorch/mmseg checkpoints and validated with ONNX Runtime against the PyTorch/mmseg output. The validation compares logits and verifies that the final `argmax` segmentation agrees. See `manifest.json` for per-model metadata and validation values. ## ComfyUI These files are used by the ComfyUI custom node: [ComfyUI-EasyPortrait](https://github.com/sadzip/ComfyUI-EasyPortrait) The node downloads models from this re...

Source context: 0 downloads · 0 likes · Pipeline image-segmentation · Library onnx · Repo sadzip/EasyPortrait-ONNX