v4.8.2.1 , highest of lower hip points
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user