From ea9545e13f9b891cc5e99eb3f258a361ac4d9a92 Mon Sep 17 00:00:00 2001 From: zimmermc Date: Mon, 21 Oct 2019 18:07:45 +0200 Subject: [PATCH] Scale explanation --- pred.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pred.py b/pred.py index 170c4ab..46caba3 100644 --- a/pred.py +++ b/pred.py @@ -60,7 +60,9 @@ def pred_template(img, K, scale): """ Predict joints and vertices from a given sample. img: (224, 224, 30 RGB image. K: (3, 3) camera intrinsic matrix. - scale: () scalar metric length of the reference bone. + scale: () scalar metric length of the reference bone, + which was calculated as np.linalg.norm(xyz[9] - xyz[10], 2), + i.e. it is the length of the proximal phalangal bone of the middle finger. """ # TODO: Put your algorithm here, which computes (metric) 3D joint coordinates and 3D vertex positions xyz = np.zeros((21, 3)) # 3D coordinates of the 21 joints