Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BT] Fix failing CI tests #501

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Conversation

younesbelkada
Copy link
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
Contributor Author

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

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 22, 2022

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

@fxmarty
Copy link
Contributor

fxmarty commented Nov 22, 2022

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