Skip to content

[BT] Fix failing CI tests#501

Merged
younesbelkada merged 1 commit into
huggingface:mainfrom
younesbelkada:fix-bt-test
Nov 22, 2022
Merged

[BT] Fix failing CI tests#501
younesbelkada merged 1 commit into
huggingface:mainfrom
younesbelkada:fix-bt-test

Conversation

@younesbelkada

Copy link
Copy Markdown
Contributor

What does this PR do?

fixes the failing CI tests for BT

using transformers==4.24.0 , the snippet:

import requests
from PIL import Image
from transformers import AutoFeatureExtractor

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

# Use the same feature extractor for everyone
feature_extractor = AutoFeatureExtractor.from_pretrained("hf-internal-testing/tiny-random-ViTModel")
inputs = feature_extractor(images=image, return_tensors="pt")

fails
Using the main branch of transformers should fix the issue

cc @fxmarty

@younesbelkada

Copy link
Copy Markdown
Contributor Author

Actually there is a better fix: see huggingface/transformers#20383 / the fix should probably go on the Hub

@HuggingFaceDocBuilderDev

HuggingFaceDocBuilderDev commented Nov 22, 2022

Copy link
Copy Markdown

The documentation is not available anymore as the PR was closed or merged.

@fxmarty

fxmarty commented Nov 22, 2022

Copy link
Copy Markdown
Contributor

Let's merge until the fix is available on the Hub!

@younesbelkada
younesbelkada merged commit ed95b9f into huggingface:main Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants