-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Liu yi/surpport edpose #2688
Conversation
537f084
to
e4ec320
Compare
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
9ecf22f
to
88a9445
Compare
elif self.normalize_bakend == 'pillow': | ||
_batch_input = tvF.normalize( | ||
_batch_input, mean=self.mean, std=self.std) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normalize_backend
seems to be confusing, since the normalization is actually conducted by torchvision
.
If we want to emphasize the img is loaded by pillow
, maybe imdecode_backend
is more explicit, just like mmcv does https://github.com/open-mmlab/mmcv/blob/b361a81ad4c5d31611dad7e8d5fbcb7d7df22f34/mmcv/transforms/loading.py#L33
return [[itm_out.transpose(0, 1) for itm_out in intermediate], | ||
[ | ||
itm_refpoint.transpose(0, 1) | ||
for itm_refpoint in intermediate_reference_points | ||
]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refine this code
out = { | ||
'pred_logits': outputs_class[-1], | ||
'pred_boxes': outputs_coord_list[-1], | ||
'pred_keypoints': outputs_keypoints_list[-1] | ||
} | ||
|
||
return out | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems not to be necessary to pack outputs into dict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* update * [Fix] Fix HRFormer log link * [Feature] Add Application 'Just dance' (#2528) * [Docs] Add advanced tutorial of implement new model. (#2539) * [Doc] Update img (#2541) * [Feature] Support MotionBERT (#2482) * [Fix] Fix demo scripts (#2542) * [Fix] Fix Pose3dInferencer keypoint shape bug (#2543) * [Enhance] Add notifications when saving visualization results (#2545) * [Fix] MotionBERT training and flip-test (#2548) * [Docs] Enhance docs (#2555) * [Docs] Fix links in doc (#2557) * [Docs] add details (#2558) * [Refactor] 3d human pose demo (#2554) * [Docs] Update MotionBERT docs (#2559) * [Refactor] Update the arguments of 3d inferencer to align with the demo script (#2561) * [Enhance] Combined dataset supports custom sampling ratio (#2562) * [Docs] Add MultiSourceSampler docs (#2563) * [Doc] Refine docs (#2564) * [Feature][MMSIG] Add UniFormer Pose Estimation to Projects folder (#2501) * [Fix] Check the compatibility of inferencer's input/output (#2567) * [Fix]Fix 3d visualization (#2565) * [Feature] Add bear example in just dance (#2568) * [Doc] Add example and openxlab link for just dance (#2571) * [Fix] Configs' paths of VideoPose3d (#2572) * [Docs] update docs (#2573) * [Fix] Fix new config bug in train.py (#2575) * [Fix] Configs' of MotionBERT (#2574) * [Enhance] Normalization option in 3d human pose demo and inferencer (#2576) * [Fix] Fix the incorrect labels for training vis_head with combined datasets (#2550) * [Enhance] Enhance 3dpose demo and docs (#2578) * [Docs] Enhance Codecs documents (#2580) * [Feature] Add DWPose distilled WholeBody RTMPose models (#2581) * [Docs] Add deployment docs (#2582) * [Fix] Refine 3dpose (#2583) * [Fix] Fix config typo in rtmpose-x (#2585) * [Fix] Fix 3d inferencer (#2593) * [Feature] Add a simple visualize api (#2596) * [Feature][MMSIG] Support badcase analyze in test (#2584) * [Fix] fix bug in flip_bbox with xyxy format (#2598) * [Feature] Support ubody dataset (2d keypoints) (#2588) * [Fix] Fix visualization bug in 3d pose (#2594) * [Fix] Remove use-multi-frames option (#2601) * [Enhance] Update demos (#2602) * [Enhance] wholebody support openpose style visualization (#2609) * [Docs] Documentation regarding 3d pose (#2599) * [CodeCamp2023-533] Migration Deepfashion topdown heatmap algorithms to 1.x (#2597) * [Fix] fix badcase hook (#2616) * [Fix] Update dataset mim downloading source to OpenXLab (#2614) * [Docs] Update docs structure (#2617) * [Docs] Refine Docs (#2619) * [Fix] Fix numpy error (#2626) * [Docs] Update error info and docs (#2624) * [Fix] Fix inferencer argument name (#2627) * [Fix] fix links for coco+aic hrnet (#2630) * [Fix] fix a bug when visualize keypoint indices (#2631) * [Docs] Update rtmpose docs (#2642) * [Docs] update README.md (#2647) * [Docs] Add onnx of RTMPose models (#2656) * [Docs] Fix mmengine link (#2655) * [Docs] Update QR code (#2653) * [Feature] Add DWPose (#2643) * [Refactor] Reorganize distillers (#2658) * [CodeCamp2023-259]Document Writing: Advanced Tutorial - Custom Data Augmentation (#2605) * [Docs] Fix installation docs(#2668) * [Fix] Fix expired links in README (#2673) * [Feature] Support multi-dataset evaluation (#2674) * [Refactor] Specify labels to pack in codecs (#2659) * [Refactor] update mapping tables (#2676) * [Fix] fix link (#2677) * [Enhance] Enable CocoMetric to get ann_file from MessageHub (#2678) * [Fix] fix vitpose pretrained ckpts (#2687) * [Refactor] Refactor YOLOX-Pose into mmpose core package (#2620) * [Fix] Fix typo in COCOMetric(#2691) * [Fix] Fix bug raised by changing bbox_center to input_center (#2693) * [Feature] Surpport EDPose for inference(#2688) * [Refactor] Internet for 3d hand pose estimation (#2632) * [Fix] Change test batch_size of edpose to 1 (#2701) * [Docs] Add OpenXLab Badge (#2698) * [Doc] fix inferencer doc (#2702) * [Docs] Refine dataset config tutorial (#2707) * [Fix] modify yoloxpose test settings (#2706) * [Fix] add compatibility for argument `return_datasample` (#2708) * [Feature] Support ubody3d dataset (#2699) * [Fix] Fix 3d inferencer (#2709) * [Fix] Move ubody3d dataset to wholebody3d (#2712) * [Refactor] Refactor config and dataset file structures (#2711) * [Fix] give more clues when loading img failed (#2714) * [Feature] Add demo script for 3d hand pose (#2710) * [Fix] Fix Internet demo (#2717) * [codecamp: mmpose-315] 300W-LP data set support (#2716) * [Fix] Fix the typo in YOLOX-Pose (#2719) * [Feature] Add detectors trained on humanart (#2724) * [Feature] Add RTMPose-Wholebody (#2721) * [Doc] Fix github action badge in README (#2727) * [Fix] Fix bug of dwpose (#2728) * [Feature] Support hand3d inferencer (#2729) * [Fix] Fix new config of RTMW (#2731) * [Fix] Align visualization color of 3d demo (#2734) * [Fix] Refine h36m data loading and add head_size to PackPoseInputs (#2735) * [Refactor] Align test accuracy for AE (#2737) * [Refactor] Separate evaluation mappings from KeypointConverter (#2738) * [Fix] MotionbertLabel codec (#2739) * [Fix] Fix mask shape (#2740) * [Feature] Add training datasets of RTMW (#2743) * [Doc] update RTMPose README (#2744) * [Fix] skip warnings in demo (#2746) * Bump 1.2 (#2748) * add comments in dekr configs (#2751) --------- Co-authored-by: Peng Lu <[email protected]> Co-authored-by: Yifan Lareina WU <[email protected]> Co-authored-by: Xin Li <[email protected]> Co-authored-by: Indigo6 <[email protected]> Co-authored-by: 谢昕辰 <[email protected]> Co-authored-by: tpoisonooo <[email protected]> Co-authored-by: zhengjie.xu <[email protected]> Co-authored-by: Mesopotamia <[email protected]> Co-authored-by: chaodyna <[email protected]> Co-authored-by: lwttttt <[email protected]> Co-authored-by: Kanji Yomoda <[email protected]> Co-authored-by: LiuYi-Up <[email protected]> Co-authored-by: ZhaoQiiii <[email protected]> Co-authored-by: Yang-ChangHui <[email protected]> Co-authored-by: Xuan Ju <[email protected]>
Motivation
Support inference pipline for ED-Pose
Modification
新文件: configs/body_2d_keypoint/edpose/coco/edpose_coco.md
新文件: configs/body_2d_keypoint/edpose/coco/edpose_coco.yml
新文件: configs/body_2d_keypoint/edpose/coco/edpose_res50_coco.py
新文件: docs/src/papers/algorithms/edpose.md
修改: mmpose/codecs/init.py
新文件: mmpose/codecs/edpose_label.py
修改: mmpose/datasets/transforms/init.py
修改: mmpose/datasets/transforms/bottomup_transforms.py
修改: mmpose/models/data_preprocessors/init.py
修改: mmpose/models/data_preprocessors/data_preprocessor.py
修改: mmpose/models/heads/init.py
新文件: mmpose/models/heads/transformer_heads/init.py
新文件: mmpose/models/heads/transformer_heads/base_transformer_head.py
新文件: mmpose/models/heads/transformer_heads/edpose_head.py
新文件: mmpose/models/heads/transformer_heads/transformers/init.py
新文件: mmpose/models/heads/transformer_heads/transformers/deformable_detr_layers.py
新文件: mmpose/models/heads/transformer_heads/transformers/detr_layers.py
新文件: mmpose/models/heads/transformer_heads/transformers/utils.py
修改: mmpose/models/necks/init.py
新文件: mmpose/models/necks/chanel_mapper_neck.py
修改: tests/test_datasets/test_transforms/test_bottomup_transforms.py
BC-breaking (Optional)
Use cases (Optional)
Checklist
Before PR:
After PR: