Skip to content

Commit a7fa891

Browse files
deruyter92Copilot
andauthored
Update fmpose3d/inference_api/fmpose3d.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cee4e68 commit a7fa891

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

fmpose3d/inference_api/fmpose3d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,10 +1111,10 @@ def _normalize_3d_input(
11111111
if isinstance(keypoints_2d, Pose2DResult):
11121112
if image_size is not None and image_size != keypoints_2d.image_size:
11131113
raise ValueError(
1114-
f"Got two different image sizes: image_size={image_size} does not match "
1115-
f"Got Pose2DResult.image_size={keypoints_2d.image_size} and image_size={image_size}. "
1116-
"Please provide either a Pose2DResult (containing image_size), or keypoints_2d as a "
1117-
"numpy ndarray together with image_size={image_size}."
1114+
f"Image size mismatch: Pose2DResult.image_size={keypoints_2d.image_size}, "
1115+
f"image_size={image_size}. Please provide either a Pose2DResult (containing "
1116+
f"image_size), or keypoints_2d as a numpy ndarray together with "
1117+
f"image_size={image_size}."
11181118
)
11191119
return keypoints_2d
11201120

0 commit comments

Comments
 (0)