Fix image_processor_class bug (#21410)

Co-authored-by: Shreshth Tuli <shreshthtuli@gmail.com>
This commit is contained in:
Shikhar Tuli 2023-02-02 09:20:52 -05:00 committed by GitHub
parent db572b3854
commit 0ae8dc0adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1556,6 +1556,8 @@ def get_user_input():
"What will be the name of the image processor class for this model? ",
default_value=f"{model_camel_cased}ImageProcessor",
)
else:
image_processor_class = None
if old_feature_extractor_class is not None:
feature_extractor_class = get_user_field(
"What will be the name of the feature extractor class for this model? ",