diff --git a/__init__.py b/__init__.py index 37eae87..e198107 100644 --- a/__init__.py +++ b/__init__.py @@ -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, diff --git a/smart_box.py b/smart_box.py index b9698b8..e952e60 100644 --- a/smart_box.py +++ b/smart_box.py @@ -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