@@ -3206,7 +3206,7 @@ def test_kernel_video(self):
32063206
32073207 @pytest .mark .parametrize (
32083208 "make_input" ,
3209- [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video ],
3209+ [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video , make_keypoints ],
32103210 )
32113211 def test_functional (self , make_input ):
32123212 input = make_input ()
@@ -4214,13 +4214,14 @@ class TestResizedCrop:
42144214 (F .resized_crop_mask , make_segmentation_mask ),
42154215 (F .resized_crop_mask , make_detection_masks ),
42164216 (F .resized_crop_video , make_video ),
4217+ (F .resized_crop_keypoints , make_keypoints ),
42174218 ],
42184219 )
42194220 def test_kernel (self , kernel , make_input ):
42204221 input = make_input (self .INPUT_SIZE )
42214222 if isinstance (input , tv_tensors .BoundingBoxes ):
42224223 extra_kwargs = dict (format = input .format )
4223- elif isinstance (input , tv_tensors .Mask ):
4224+ elif isinstance (input , ( tv_tensors .Mask , tv_tensors . KeyPoints ) ):
42244225 extra_kwargs = dict ()
42254226 else :
42264227 extra_kwargs = dict (antialias = True )
@@ -4229,7 +4230,7 @@ def test_kernel(self, kernel, make_input):
42294230
42304231 @pytest .mark .parametrize (
42314232 "make_input" ,
4232- [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video ],
4233+ [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video , make_keypoints ],
42334234 )
42344235 def test_functional (self , make_input ):
42354236 check_functional (
@@ -4257,7 +4258,7 @@ def test_functional_signature(self, kernel, input_type):
42574258 )
42584259 @pytest .mark .parametrize (
42594260 "make_input" ,
4260- [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video ],
4261+ [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video , make_keypoints ],
42614262 )
42624263 def test_transform (self , param , value , make_input ):
42634264 check_transform (
@@ -4623,7 +4624,7 @@ def test_kernel_video(self):
46234624
46244625 @pytest .mark .parametrize (
46254626 "make_input" ,
4626- [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video ],
4627+ [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video , make_keypoints ],
46274628 )
46284629 def test_functional (self , make_input ):
46294630 check_functional (F .center_crop , make_input (self .INPUT_SIZE ), output_size = self .OUTPUT_SIZES [0 ])
@@ -4645,7 +4646,7 @@ def test_functional_signature(self, kernel, input_type):
46454646
46464647 @pytest .mark .parametrize (
46474648 "make_input" ,
4648- [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video ],
4649+ [make_image_tensor , make_image_pil , make_image , make_bounding_boxes , make_segmentation_mask , make_video , make_keypoints ],
46494650 )
46504651 def test_transform (self , make_input ):
46514652 check_transform (transforms .CenterCrop (self .OUTPUT_SIZES [0 ]), make_input (self .INPUT_SIZE ))
0 commit comments