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
9aedce99
Unverified
Commit
9aedce99
authored
Nov 02, 2022
by
amyeroberts
Committed by
GitHub
Nov 02, 2022
Browse files
Update auto processor to check image processor created (#20021)
parent
49b77b89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/models/auto/test_processor_auto.py
tests/models/auto/test_processor_auto.py
+2
-2
No files found.
tests/models/auto/test_processor_auto.py
View file @
9aedce99
...
...
@@ -206,9 +206,9 @@ class AutoFeatureExtractorTest(unittest.TestCase):
processor
=
AutoProcessor
.
from_pretrained
(
"hf-internal-testing/tiny-random-bert"
)
self
.
assertEqual
(
processor
.
__class__
.
__name__
,
"BertTokenizerFast"
)
def
test_auto_processor_creates_
feature_extract
or
(
self
):
def
test_auto_processor_creates_
image_process
or
(
self
):
processor
=
AutoProcessor
.
from_pretrained
(
"hf-internal-testing/tiny-random-convnext"
)
self
.
assertEqual
(
processor
.
__class__
.
__name__
,
"ConvNext
FeatureExtract
or"
)
self
.
assertEqual
(
processor
.
__class__
.
__name__
,
"ConvNext
ImageProcess
or"
)
@
is_staging_test
...
...
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