-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path__init__.py
More file actions
80 lines (71 loc) · 1.85 KB
/
__init__.py
File metadata and controls
80 lines (71 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""
FMPose3D: monocular 3D Pose Estimation via Flow Matching
Official implementation of the paper:
"FMPose3D: monocular 3D Pose Estimation via Flow Matching"
by Ti Wang, Xiaohang Yu, and Mackenzie Weygandt Mathis
Licensed under Apache 2.0
"""
__version__ = "0.0.7"
__author__ = "Ti Wang, Xiaohang Yu, Mackenzie Weygandt Mathis"
__license__ = "Apache 2.0"
# Import key components for easy access
from .aggregation_methods import (
average_aggregation,
aggregation_select_single_best_hypothesis_by_2D_error,
aggregation_RPEA_joint_level,
)
# Configuration dataclasses
from .common.config import (
FMPose3DConfig,
HRNetConfig,
InferenceConfig,
ModelConfig,
SupportedModel,
PipelineConfig,
)
# High-level inference API
from .inference_api.fmpose3d import (
FMPose3DInference,
HRNetEstimator,
Pose2DResult,
Pose3DResult,
Source,
)
# Model registry
from .models import BaseModel, register_model, get_model, list_models
# Import 2D pose detection utilities
from .lib.hrnet.gen_kpts import gen_video_kpts
from .lib.hrnet.hrnet import HRNetPose2d
from .lib.preprocess import h36m_coco_format, revise_kpts
# Make commonly used classes/functions available at package level
__all__ = [
# Inference API
"FMPose3DInference",
"HRNetEstimator",
"Pose2DResult",
"Pose3DResult",
"Source",
# Configuration
"FMPose3DConfig",
"HRNetConfig",
"InferenceConfig",
"ModelConfig",
"SupportedModel",
"PipelineConfig",
# Aggregation methods
"average_aggregation",
"aggregation_select_single_best_hypothesis_by_2D_error",
"aggregation_RPEA_joint_level",
# Model registry
"BaseModel",
"register_model",
"get_model",
"list_models",
# 2D pose detection
"HRNetPose2d",
"gen_video_kpts",
"h36m_coco_format",
"revise_kpts",
# Version
"__version__",
]