Skip to content

Commit

Permalink
Another import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amyeroberts committed May 16, 2024
1 parent e4e6a58 commit ffdadd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,7 @@
]
else:
_import_structure["image_processing_utils_fast"] = ["BaseImageProcessorFast"]
_import_structure["models.vit"].append("ViTImageProcessorFast")

# PyTorch-backed objects
try:
Expand Down Expand Up @@ -5788,6 +5789,7 @@
from .utils.dummy_torchvision_objects import *
else:
from .image_processing_utils_fast import BaseImageProcessorFast
from .models.vit import ViTImageProcessorFast

# Modeling
try:
Expand Down

0 comments on commit ffdadd2

Please sign in to comment.