SebasJanampa commited on
Commit
79490b3
·
verified ·
1 Parent(s): 0d928a7

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +4 -73
  2. config.json +30 -30
  3. model.safetensors +2 -2
README.md CHANGED
@@ -3,78 +3,9 @@ license: apache-2.0
3
  tags:
4
  - model_hub_mixin
5
  - pytorch_model_hub_mixin
6
- language:
7
- - en
8
- pipeline_tag: keypoint-detection
9
  ---
10
 
11
- # DETRPose-N-COCO
12
-
13
- DETRPose-N-COCO is a real-time object detection model introduced in the paper [DETRPose: Real-Time End-to-End Multi-Person Pose Estimation via Modified Transformer Decoder and Novel Denoising Keypoints](https://huggingface.co/papers/2506.13027).
14
-
15
- - **Repository:** [https://github.com/SebastianJanampa/DETRPose](https://github.com/SebastianJanampa/DETRPose)
16
- - **Paper:** [https://huggingface.co/papers/2506.13027](https://huggingface.co/papers/2506.13027)
17
-
18
- ## 📝 Model Description
19
- DETRPose introduces the first real-time end-to-end framework for multi-person pose estimation.
20
- By leveraging the hybrid encoder from RT-DETR and the lightweight decoder architecture of D-FINE, DETRPose achieves low-latency inference without sacrificing accuracy.
21
- The model introduces two primary methodological advancements:
22
-
23
- * **Pose-LQE Layer:** A specialized head designed to improve confidence scores.
24
- * **Advanced Training Paradigm:** Incorporates Denoising Keypoints and a custom Keypoint Similarity Varifocal loss function, ensuring robust learning and superior localization performance.
25
-
26
-
27
- | Model | Dataset | AP | #Params | Latency | GFLOPs |
28
- | :---: | :---: | :---: | :---: | :---: | :---: |
29
- | **DETRPose-N** | COCO | 57.2 | 4.1 M | 2.80 ms | 9.3 |
30
-
31
-
32
- ## 🚀 Installation
33
-
34
- To use this model, you need to install the inference-ready branch of the DETRPose repository.
35
- You can directly install the inference-ready branch using `pip`:
36
- ```shell
37
- pip install git+https://github.com/SebastianJanampa/DETRPose.git@inference_only
38
- ````
39
-
40
- ## 💻 Usage
41
- This branch is designed to be easy to use for inference.
42
- Here is a quick example of how to load a model and run it on a live webcam feed.
43
- ```python
44
- from detrpose import DETR
45
-
46
- # Initialization
47
- model = DETR(model='detrpose_hgnetv2_n')
48
-
49
- # Inference
50
- model(source=0) # inference on a webcam
51
- ```
52
-
53
-
54
- ## 📜 Citation
55
- If you use `DETRPose` or its methods in your work, please cite the following BibTeX entries:
56
-
57
- ```latex
58
- @misc{janampa2025detrpose,
59
- title={DETRPose: Real-time end-to-end transformer model for multi-person pose estimation},
60
- author={Sebastian Janampa and Marios Pattichis},
61
- year={2025},
62
- eprint={2506.13027},
63
- archivePrefix={arXiv},
64
- primaryClass={cs.CV},
65
- url={https://arxiv.org/abs/2506.13027},
66
- }
67
- ```
68
-
69
- ## 🙏 Acknowledgement
70
- This work was supported in part by [Lambda.ai](https://lambda.ai).
71
-
72
- Our work is built upon [DEIM](https://github.com/Intellindust-AI-Lab/DEIM/tree/main), [D-FINE](https://github.com/Peterande/D-FINE), [Detectron2](https://github.com/facebookresearch/detectron2/tree/main), and [GroupPose](https://github.com/Michel-liu/GroupPose/tree/main).
73
-
74
- ✨ Feel free to reach out if you have any questions! ✨
75
-
76
- <div align="left">
77
- <a href="https://lambda.ai" target="_blank">
78
- <img src="./assets/lambda_logo2.png" width=500 >
79
- </a>
80
- </div>
 
3
  tags:
4
  - model_hub_mixin
5
  - pytorch_model_hub_mixin
 
 
 
6
  ---
7
 
8
+ This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
9
+ - Code: [More Information Needed]
10
+ - Paper: [More Information Needed]
11
+ - Docs: [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
config.json CHANGED
@@ -14,7 +14,36 @@
14
  ],
15
  "use_lab": true
16
  },
17
- "decoder": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  "_target_": "detrpose.nn.DETRPoseTransformer",
19
  "activation": "relu",
20
  "cls_no_bias": false,
@@ -46,35 +75,6 @@
46
  "two_stage_bbox_embed_share": false,
47
  "two_stage_class_embed_share": false,
48
  "two_stage_type": "standard"
49
- },
50
- "encoder": {
51
- "_target_": "detrpose.nn.DETRPoseHybridEncoder",
52
- "act": "silu",
53
- "depth_mult": 0.5,
54
- "dim_feedforward": 512,
55
- "dropout": 0.0,
56
- "enc_act": "gelu",
57
- "eval_spatial_size": [
58
- 640,
59
- 640
60
- ],
61
- "expansion": 0.34,
62
- "feat_strides": [
63
- 16,
64
- 32
65
- ],
66
- "hidden_dim": 128,
67
- "in_channels": [
68
- 512,
69
- 1024
70
- ],
71
- "num_heads": 8,
72
- "num_levels": 2,
73
- "temperatureH": 20,
74
- "temperatureW": 20,
75
- "use_encoder_idx": [
76
- 1
77
- ]
78
  }
79
  },
80
  "postprocessor": {
 
14
  ],
15
  "use_lab": true
16
  },
17
+ "encoder": {
18
+ "_target_": "detrpose.nn.DETRPoseHybridEncoder",
19
+ "act": "silu",
20
+ "depth_mult": 0.5,
21
+ "dim_feedforward": 512,
22
+ "dropout": 0.0,
23
+ "enc_act": "gelu",
24
+ "eval_spatial_size": [
25
+ 640,
26
+ 640
27
+ ],
28
+ "expansion": 0.34,
29
+ "feat_strides": [
30
+ 16,
31
+ 32
32
+ ],
33
+ "hidden_dim": 128,
34
+ "in_channels": [
35
+ 512,
36
+ 1024
37
+ ],
38
+ "num_heads": 8,
39
+ "num_levels": 2,
40
+ "temperatureH": 20,
41
+ "temperatureW": 20,
42
+ "use_encoder_idx": [
43
+ 1
44
+ ]
45
+ },
46
+ "transformer": {
47
  "_target_": "detrpose.nn.DETRPoseTransformer",
48
  "activation": "relu",
49
  "cls_no_bias": false,
 
75
  "two_stage_bbox_embed_share": false,
76
  "two_stage_class_embed_share": false,
77
  "two_stage_type": "standard"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  }
79
  },
80
  "postprocessor": {
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a9f39e75b758966ae01b9f707ebaacac5d8ee0602056043ddd4d07e393eb95d3
3
- size 16677536
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b618ccec659b42e92372290645c3c4712813571ecda914bf3ffa52d1173e20fc
3
+ size 16677992