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
06d98e27
Unverified
Commit
06d98e27
authored
Jul 22, 2022
by
Sylvain Gugger
Committed by
GitHub
Jul 22, 2022
Browse files
Fix OwlViT tests (#18253)
* Fix OwlViT tests * Forgot one
parent
12d66b47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/owlvit/__init__.py
src/transformers/models/owlvit/__init__.py
+2
-2
No files found.
src/transformers/models/owlvit/__init__.py
View file @
06d98e27
...
...
@@ -40,7 +40,7 @@ _import_structure = {
try
:
if
not
is_vision_available
()
or
not
is_torch_available
()
:
if
not
is_vision_available
():
raise
OptionalDependencyNotAvailable
()
except
OptionalDependencyNotAvailable
:
pass
...
...
@@ -72,7 +72,7 @@ if TYPE_CHECKING:
from
.processing_owlvit
import
OwlViTProcessor
try
:
if
not
is_vision_available
()
or
not
is_torch_available
()
:
if
not
is_vision_available
():
raise
OptionalDependencyNotAvailable
()
except
OptionalDependencyNotAvailable
:
pass
...
...
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