Skip to content

Conversation

@DeXtAr47-oss
Copy link

What does this PR do?

This PR introduces FuyuImageProcessorFast, providing a faster alternative to the original FuyuImageProcessor by leveraging torchvision for image transformations.

Key changes include:

  • Implementation of FuyuImageProcessorFast inheriting from BaseImageProcessorFast.
  • Updates to tests/models/fuyu/test_image_processing_fuyu.py to include the fast processor, override save/load tests and fixed the image height and width in test_preprocess_with_tokenizer_info have been updated to values divisible by 30 (180x300), ensuring compatibility with FuyuImageProcessorFast and avoiding ValueError: image_height must be divisible by 30. All Fuyu image processing tests now pass.
  • Addition of documentation for FuyuImageProcessorFast

Fixes #36978

Before submitting

Who can review?

@yonigozlan

@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: auto, fuyu

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.

[Contributions Welcome] Add Fast Image Processors

1 participant