Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
0ae8dc0a
Unverified
Commit
0ae8dc0a
authored
Feb 02, 2023
by
Shikhar Tuli
Committed by
GitHub
Feb 02, 2023
Browse files
Fix image_processor_class bug (#21410)
Co-authored-by:
Shreshth Tuli
<
shreshthtuli@gmail.com
>
parent
db572b38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/transformers/commands/add_new_model_like.py
src/transformers/commands/add_new_model_like.py
+2
-0
No files found.
src/transformers/commands/add_new_model_like.py
View file @
0ae8dc0a
...
@@ -1556,6 +1556,8 @@ def get_user_input():
...
@@ -1556,6 +1556,8 @@ def get_user_input():
"What will be the name of the image processor class for this model? "
,
"What will be the name of the image processor class for this model? "
,
default_value
=
f
"
{
model_camel_cased
}
ImageProcessor"
,
default_value
=
f
"
{
model_camel_cased
}
ImageProcessor"
,
)
)
else
:
image_processor_class
=
None
if
old_feature_extractor_class
is
not
None
:
if
old_feature_extractor_class
is
not
None
:
feature_extractor_class
=
get_user_field
(
feature_extractor_class
=
get_user_field
(
"What will be the name of the feature extractor class for this model? "
,
"What will be the name of the feature extractor class for this model? "
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment