1919@dataclass
2020class ModelConfig :
2121 """Model architecture configuration."""
22- model_type : str = "fmpose3d "
22+ model_type : str = "fmpose3d_humans "
2323
2424
2525# Per-model-type defaults for fields marked with INFER_FROM_MODEL_TYPE.
2626# Also consumed by PipelineConfig.for_model_type to set cross-config
2727# values (dataset, sample_steps, etc.).
2828_FMPOSE3D_DEFAULTS : Dict [str , Dict ] = {
29- "fmpose3d " : {
29+ "fmpose3d_humans " : {
3030 "n_joints" : 17 ,
3131 "out_joints" : 17 ,
3232 "dataset" : "h36m" ,
@@ -39,7 +39,7 @@ class ModelConfig:
3939 "n_joints" : 26 ,
4040 "out_joints" : 26 ,
4141 "dataset" : "animal3d" ,
42- "sample_steps" : 3 ,
42+ "sample_steps" : 5 ,
4343 "joints_left" : [0 , 3 , 5 , 8 , 10 , 12 , 14 , 16 , 20 , 22 ],
4444 "joints_right" : [1 , 4 , 6 , 9 , 11 , 13 , 15 , 17 , 21 , 23 ],
4545 "root_joint" : 7 ,
@@ -51,7 +51,7 @@ class ModelConfig:
5151
5252@dataclass
5353class FMPose3DConfig (ModelConfig ):
54- model_type : str = "fmpose3d "
54+ model_type : str = "fmpose3d_humans "
5555 model : str = ""
5656 layers : int = 5
5757 channel : int = 512
@@ -321,7 +321,7 @@ def _pick(dc_class, src: dict):
321321
322322 kwargs = {}
323323 for group_name , dc_class in _SUB_CONFIG_CLASSES .items ():
324- if group_name == "model_cfg" and raw .get ("model_type" , 'fmpose3d ' ) in _FMPOSE3D_DEFAULTS :
324+ if group_name == "model_cfg" and raw .get ("model_type" , 'fmpose3d_humans ' ) in _FMPOSE3D_DEFAULTS :
325325 dc_class = FMPose3DConfig
326326 elif group_name == "pose2d_cfg" :
327327 p2d = raw .get ("pose2d_model" , "hrnet" )
0 commit comments