Image Segmentation
PyTorch
Safetensors
ExecuTorch
TensorRT
English
semantic-segmentation
skin-fabric-detection
skin-segmentation
fabric-segmentation
dinov3
on-device
mobile
Instructions to use jamal-one/PyraFuse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use jamal-one/PyraFuse with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Add PyraFuse v1.0.0 model card
Browse filesDocument segmentation task, checkpoints, preprocessing, provenance, licensing, and deployment guidance.
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: other
|
| 5 |
+
library_name: pytorch
|
| 6 |
+
pipeline_tag: image-segmentation
|
| 7 |
+
tags:
|
| 8 |
+
- semantic-segmentation
|
| 9 |
+
- skin-fabric-detection
|
| 10 |
+
- skin-segmentation
|
| 11 |
+
- fabric-segmentation
|
| 12 |
+
- dinov3
|
| 13 |
+
- tensorrt
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# PyraFuse: skin, fabric, and background segmentation
|
| 17 |
+
|
| 18 |
+
PyraFuse is a DINOv3-based semantic-segmentation framework for three classes:
|
| 19 |
+
`0 = background`, `1 = fabric`, and `2 = skin`. The associated paper has been
|
| 20 |
+
accepted at AIMLSystems 2026.
|
| 21 |
+
|
| 22 |
+
## Available checkpoints
|
| 23 |
+
|
| 24 |
+
| Variant | Encoder | Folder |
|
| 25 |
+
| --- | --- | --- |
|
| 26 |
+
| `small` | DINOv3 ViT-S/16 | `small/` |
|
| 27 |
+
| `small_plus` | DINOv3 ViT-S+/16 | `small_plus/` |
|
| 28 |
+
| `base` | DINOv3 ViT-B/16 | `base/` |
|
| 29 |
+
| `large` | DINOv3 ViT-L/16 | `large/` |
|
| 30 |
+
|
| 31 |
+
Each folder is self-contained: `config.json`, `decoder.pt`, `ema.pt`, and a
|
| 32 |
+
`backbone/` directory with the DINOv3 configuration, `model.safetensors`, and
|
| 33 |
+
adapter feature-normalisation weights. Use EMA weights for evaluation.
|
| 34 |
+
|
| 35 |
+
## Usage
|
| 36 |
+
|
| 37 |
+
Install the [PyraFuse code repository](https://github.com/jamal-saeedi/PyraFuse),
|
| 38 |
+
then load any variant. Pin a revision for reproducible experiments.
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from pyrafuse import load_pretrained
|
| 42 |
+
|
| 43 |
+
model = load_pretrained("base", revision="v1.0.0", device="cuda")
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
Inputs must be RGB, ImageNet-normalised, and have height and width divisible by
|
| 47 |
+
16. The default checkpoint configuration uses 448 × 448 inputs.
|
| 48 |
+
|
| 49 |
+
## Release policy
|
| 50 |
+
|
| 51 |
+
These eager PyTorch checkpoint bundles are the portable source of truth.
|
| 52 |
+
TensorRT engines are deliberately not distributed here because they are tied to
|
| 53 |
+
the target GPU, CUDA, TensorRT version, precision, and optimization profile.
|
| 54 |
+
Build and validate TensorRT engines on the deployment host from the PyTorch
|
| 55 |
+
checkpoint using the repository's `scripts/export_trt.py` command.
|
| 56 |
+
|
| 57 |
+
## Licence
|
| 58 |
+
|
| 59 |
+
The PyraFuse decoder and repository code are Apache-2.0. Each checkpoint
|
| 60 |
+
bundle includes Meta DINOv3 backbone material; use and redistribution of those
|
| 61 |
+
bundles are additionally subject to the DINOv3 License. A verbatim copy is
|
| 62 |
+
provided at `LICENSES/DINOv3-LICENSE.md` in this model repository. The
|
| 63 |
+
underlying Fashionpedia and visuAAL datasets are not redistributed and retain
|
| 64 |
+
their own terms.
|
| 65 |
+
|
| 66 |
+
## Data, limitations, and responsible use
|
| 67 |
+
|
| 68 |
+
Training labels fuse Fashionpedia annotations with visuAAL skin masks. The
|
| 69 |
+
source data is not redistributed in this repository; users must comply with
|
| 70 |
+
the source datasets' terms. Model performance can vary by image quality,
|
| 71 |
+
lighting, occlusion, garment appearance, and representation in source data.
|
| 72 |
+
This model is for research and engineering use, not a medical or biometric
|
| 73 |
+
decision system.
|
| 74 |
+
|
| 75 |
+
## Citation
|
| 76 |
+
|
| 77 |
+
The accepted manuscript is included in the code repository. Formal citation
|
| 78 |
+
metadata will be added after the AIMLSystems 2026 camera-ready publication.
|