Views
No views yet
| Index | Label |
|---|---|
| 0 | background |
| 1 | skin |
| 2 | l_brow |
| 3 | r_brow |
| 4 | l_eye |
| 5 | r_eye |
| 6 | eye_g (glasses) |
| 7 | l_ear |
| 8 | r_ear |
| 9 | ear_r (earring) |
| 10 | nose |
| 11 | mouth |
| 12 | u_lip |
| 13 | l_lip |
| 14 | neck |
| 15 | neck_l |
| 16 | cloth |
| 17 | hair |
| 18 | hat |
1from huggingface_hub import hf_hub_download
2import onnxruntime as ort
3
4# Download model
5model_path = hf_hub_download(
6 repo_id="PayamFard123/dermaintel-face-parsing",
7 filename="resnet18.onnx"
8)
9
10# Load model
11session = ort.InferenceSession(model_path)