ClampKeyPoints¶ class torchvision.transforms.v2.ClampKeyPoints[源代码]¶ 将关键点裁剪到其对应的图像尺寸。 裁剪是根据关键点的 canvas_size 元数据进行的。 transform(inpt: KeyPoints, params: dict[str, Any]) → KeyPoints[源代码]¶ 用于覆盖自定义变换的方法。 请参阅 如何编写自己的 v2 变换