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
2959d090
Unverified
Commit
2959d090
authored
Aug 02, 2022
by
Yih-Dar
Committed by
GitHub
Aug 02, 2022
Browse files
Fix `test_load_default_pipelines_tf` test error (#18422)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
8ae77842
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/transformers/pipelines/__init__.py
src/transformers/pipelines/__init__.py
+6
-1
No files found.
src/transformers/pipelines/__init__.py
View file @
2959d090
...
...
@@ -285,7 +285,12 @@ SUPPORTED_TASKS = {
"impl"
:
ImageClassificationPipeline
,
"tf"
:
(
TFAutoModelForImageClassification
,)
if
is_tf_available
()
else
(),
"pt"
:
(
AutoModelForImageClassification
,)
if
is_torch_available
()
else
(),
"default"
:
{
"model"
:
{
"pt"
:
(
"google/vit-base-patch16-224"
,
"5dca96d"
)}},
"default"
:
{
"model"
:
{
"pt"
:
(
"google/vit-base-patch16-224"
,
"5dca96d"
),
"tf"
:
(
"google/vit-base-patch16-224"
,
"5dca96d"
),
}
},
"type"
:
"image"
,
},
"image-segmentation"
:
{
...
...
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