Instructions to use onnx-community/vitpose-base-simple with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/vitpose-base-simple with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('keypoint-detection', 'onnx-community/vitpose-base-simple');
Update config.json
Browse files- config.json +17 -17
config.json
CHANGED
|
@@ -62,23 +62,23 @@
|
|
| 62 |
],
|
| 63 |
"initializer_range": 0.02,
|
| 64 |
"label2id": {
|
| 65 |
-
"Nose":
|
| 66 |
-
"L_Eye":
|
| 67 |
-
"R_Eye":
|
| 68 |
-
"L_Ear":
|
| 69 |
-
"R_Ear":
|
| 70 |
-
"L_Shoulder":
|
| 71 |
-
"R_Shoulder":
|
| 72 |
-
"L_Elbow":
|
| 73 |
-
"R_Elbow":
|
| 74 |
-
"L_Wrist":
|
| 75 |
-
"R_Wrist":
|
| 76 |
-
"L_Hip":
|
| 77 |
-
"R_Hip":
|
| 78 |
-
"L_Knee":
|
| 79 |
-
"R_Knee":
|
| 80 |
-
"L_Ankle":
|
| 81 |
-
"R_Ankle":
|
| 82 |
},
|
| 83 |
"model_type": "vitpose",
|
| 84 |
"patch_size": [
|
|
|
|
| 62 |
],
|
| 63 |
"initializer_range": 0.02,
|
| 64 |
"label2id": {
|
| 65 |
+
"Nose": 0,
|
| 66 |
+
"L_Eye": 1,
|
| 67 |
+
"R_Eye": 2,
|
| 68 |
+
"L_Ear": 3,
|
| 69 |
+
"R_Ear": 4,
|
| 70 |
+
"L_Shoulder": 5,
|
| 71 |
+
"R_Shoulder": 6,
|
| 72 |
+
"L_Elbow": 7,
|
| 73 |
+
"R_Elbow": 8,
|
| 74 |
+
"L_Wrist": 9,
|
| 75 |
+
"R_Wrist": 10,
|
| 76 |
+
"L_Hip": 11,
|
| 77 |
+
"R_Hip": 12,
|
| 78 |
+
"L_Knee": 13,
|
| 79 |
+
"R_Knee": 14,
|
| 80 |
+
"L_Ankle": 15,
|
| 81 |
+
"R_Ankle": 16
|
| 82 |
},
|
| 83 |
"model_type": "vitpose",
|
| 84 |
"patch_size": [
|