v4.8.2.1 , highest of lower hip points

This commit is contained in:
Ubuntu
2025-01-17 08:59:07 +00:00
parent edb141157f
commit 8b00fcffec
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3760,7 +3760,7 @@ NODE_CLASS_MAPPINGS = {
}
VERSION = "4.8.2"
VERSION = "4.8.2.1"
# A dictionary that contains the friendly/humanly readable titles for the nodes
NODE_DISPLAY_NAME_MAPPINGS = {
"tri3d-photoroom-bgremove-api": "Photoroom BG Remove" + " v" + VERSION,
+1 -1
View File
@@ -84,7 +84,7 @@ class TRI3D_SmartBox:
# Correct the indices for hip keypoints
# Assuming indices 8 and 11 are for left and right hips
try:
hip_y = (keypoints[0][1] + keypoints[1][1]) // 2
hip_y = min(keypoints[0][1], keypoints[1][1], keypoints[2][1], keypoints[3][1], keypoints[4][1], keypoints[5][1])
except:
hip_y = 0