Converted wb model as well.

This commit is contained in:
Daniel
2024-12-18 16:53:32 +01:00
parent f8984f9408
commit 1bb7dd966e
4 changed files with 35 additions and 6 deletions

View File

@ -116,6 +116,7 @@ datasets = {
"path": "/datasets/human36m/skelda/wb/test.json",
"take_interval": 100,
"min_bbox_score": 0.4,
"batch_poses": False,
},
"egohumans_tagging": {
"path": "/datasets/egohumans/skelda/all.json",

View File

@ -479,12 +479,18 @@ def load_model(min_bbox_score=0.3, min_bbox_area=0.1 * 0.1, batch_poses=False):
return model
def load_wb_model():
print("Loading mmpose whole body model ...")
def load_wb_model(min_bbox_score=0.3, min_bbox_area=0.1 * 0.1, batch_poses=False):
print("Loading 2D-WB model ...")
model = None
model = TopDown(
"/RapidPoseTriangulation/extras/mmdeploy/exports/rtmdet-nano_1x320x320x3_fp16_extra-steps.onnx",
f"/RapidPoseTriangulation/extras/mmdeploy/exports/rtmpose-l_wb_{'B' if batch_poses else '1'}x384x288x3_fp16_extra-steps.onnx",
box_conf_threshold=min_bbox_score,
box_min_area=min_bbox_area,
warmup=30,
)
print("Loaded mmpose model")
print("Loaded 2D-WB model")
return model