Skip to content

Commit

Permalink
revert load_processor change
Browse files Browse the repository at this point in the history
  • Loading branch information
yonigozlan committed Oct 31, 2024
1 parent b866c27 commit 3118dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/pipelines/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ def pipeline(
load_tokenizer = load_tokenizer and pipeline_class._load_tokenizer
load_feature_extractor = load_feature_extractor and pipeline_class._load_feature_extractor
load_image_processor = load_image_processor and pipeline_class._load_image_processor
load_processor = load_processor or pipeline_class._load_processor
load_processor = load_processor and pipeline_class._load_processor

# If `model` (instance of `PretrainedModel` instead of `str`) is passed (and/or same for config), while
# `image_processor` or `feature_extractor` is `None`, the loading will fail. This happens particularly for some
Expand Down

0 comments on commit 3118dac

Please sign in to comment.