Skip to content

Commit

Permalink
moving the file
Browse files Browse the repository at this point in the history
  • Loading branch information
skaulintel committed Sep 20, 2024
1 parent 5b09697 commit fe63282
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def test_inputs_embeds(self):

# We will verify our results on an image of cute cats
def prepare_img():
image = Image.open("./tests/fixtures/tests_samples/COCO/000000039769.png")
image = Image.open("tests/resource/img/000000039769.png")
return image


Expand Down
2 changes: 1 addition & 1 deletion tests/transformers/tests/models/swin/test_modeling_swin.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def test_inference_image_classification_head(self):
model = SwinForImageClassification.from_pretrained("microsoft/swin-tiny-patch4-window7-224").to(torch_device)
image_processor = self.default_image_processor

image = Image.open("./tests/fixtures/tests_samples/COCO/000000039769.png")
image = Image.open("./tests/resource/img/000000039769.png")
inputs = image_processor(images=image, return_tensors="pt").to(torch_device)

# forward pass
Expand Down
2 changes: 1 addition & 1 deletion tests/transformers/tests/models/vit/test_modeling_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def test_model_from_pretrained(self):

# We will verify our results on an image of cute cats
def prepare_img():
image = Image.open("./tests/fixtures/tests_samples/COCO/000000039769.png")
image = Image.open("./tests/resource/img/000000039769.png")
return image


Expand Down
2 changes: 1 addition & 1 deletion tests/transformers/tests/utils/test_image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def test_load_img_url_timeout(self):
load_image(INVOICE_URL, timeout=0.001)

def test_load_img_local(self):
img = load_image("./tests/fixtures/tests_samples/COCO/000000039769.png")
img = load_image("./tests/resource/img/000000039769.png")
img_arr = np.array(img)

self.assertEqual(
Expand Down

0 comments on commit fe63282

Please sign in to comment.