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
OpenDAS
vision
Commits
8d540228
"vscode:/vscode.git/clone" did not exist on "12a1104e650c93a21ddcdc826fe7abfeba45e06e"
Unverified
Commit
8d540228
authored
Jul 26, 2021
by
Nicolas Hug
Committed by
GitHub
Jul 26, 2021
Browse files
Remove TestCase dependency for test_models_detection_anchor_utils.py (#4207)
parent
693e0ae8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/test_models_detection_anchor_utils.py
test/test_models_detection_anchor_utils.py
+2
-2
No files found.
test/test_models_detection_anchor_utils.py
View file @
8d540228
import
torch
import
torch
from
common_utils
import
TestCase
,
assert_equal
from
common_utils
import
assert_equal
from
torchvision.models.detection.anchor_utils
import
AnchorGenerator
,
DefaultBoxGenerator
from
torchvision.models.detection.anchor_utils
import
AnchorGenerator
,
DefaultBoxGenerator
from
torchvision.models.detection.image_list
import
ImageList
from
torchvision.models.detection.image_list
import
ImageList
import
pytest
import
pytest
class
Tester
(
TestCase
)
:
class
Tester
:
def
test_incorrect_anchors
(
self
):
def
test_incorrect_anchors
(
self
):
incorrect_sizes
=
((
2
,
4
,
8
),
(
32
,
8
),
)
incorrect_sizes
=
((
2
,
4
,
8
),
(
32
,
8
),
)
incorrect_aspects
=
(
0.5
,
1.0
)
incorrect_aspects
=
(
0.5
,
1.0
)
...
...
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