Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c1fe1259
Unverified
Commit
c1fe1259
authored
Jul 03, 2024
by
Pablo Montalvo
Committed by
GitHub
Jul 03, 2024
Browse files
handle (processor_class, None) returned by ModelPatterns (#31753)
parent
0fd885b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/commands/add_new_model_like.py
src/transformers/commands/add_new_model_like.py
+1
-1
No files found.
src/transformers/commands/add_new_model_like.py
View file @
c1fe1259
...
@@ -1628,7 +1628,7 @@ def get_user_input():
...
@@ -1628,7 +1628,7 @@ def get_user_input():
)
)
old_processing_classes
=
[
old_processing_classes
=
[
c
c
if
not
isinstance
(
c
,
tuple
)
else
c
[
0
]
for
c
in
[
old_image_processor_class
,
old_feature_extractor_class
,
old_tokenizer_class
,
old_processor_class
]
for
c
in
[
old_image_processor_class
,
old_feature_extractor_class
,
old_tokenizer_class
,
old_processor_class
]
if
c
is
not
None
if
c
is
not
None
]
]
...
...
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