From 159ff3342c576ccf26cb00fb9510666ed626f42d Mon Sep 17 00:00:00 2001 From: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> Date: Mon, 3 Apr 2023 21:26:35 +0200 Subject: [PATCH] Update test_image_processing_pix2struct.py (#22543) --- tests/models/pix2struct/test_image_processing_pix2struct.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/models/pix2struct/test_image_processing_pix2struct.py b/tests/models/pix2struct/test_image_processing_pix2struct.py index 667ae47740..fd805da696 100644 --- a/tests/models/pix2struct/test_image_processing_pix2struct.py +++ b/tests/models/pix2struct/test_image_processing_pix2struct.py @@ -65,7 +65,7 @@ class Pix2StructImageProcessingTester(unittest.TestCase): return {"do_normalize": self.do_normalize, "do_convert_rgb": self.do_convert_rgb} def prepare_dummy_image(self): - img_url = "https://www.ilankelman.org/stopsigns/australia.jpg" + img_url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/australia.jpg" raw_image = Image.open(requests.get(img_url, stream=True).raw).convert("RGB") return raw_image @@ -87,7 +87,6 @@ class Pix2StructImageProcessingTest(ImageProcessingSavingTestMixin, unittest.Tes self.assertTrue(hasattr(image_processor, "do_normalize")) self.assertTrue(hasattr(image_processor, "do_convert_rgb")) - @unittest.skip("fix me Younes.") def test_expected_patches(self): dummy_image = self.image_processor_tester.prepare_dummy_image()