mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix image_processor_class bug (#21410)
Co-authored-by: Shreshth Tuli <shreshthtuli@gmail.com>
This commit is contained in:
parent
db572b3854
commit
0ae8dc0adf
@ -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? ",
|
||||
|
Loading…
Reference in New Issue
Block a user