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 078f920 commit 9ceab5d
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 @@ -1180,6 +1180,7 @@
]
else:
_import_structure["image_processing_utils_fast"] = ["BaseImageProcessorFast"]
_import_structure["models.vit"].append("ViTImageProcessorFast")

# PyTorch-backed objects
try:
Expand Down Expand Up @@ -5787,6 +5788,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 9ceab5d

Please sign in to comment.