Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
deepdraw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
medai
software
deepdraw
Commits
32831d9e
Commit
32831d9e
authored
4 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[test.test_config] Check image bounds
parent
d5240bcf
No related branches found
No related tags found
No related merge requests found
Pipeline
#39965
passed
4 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/ip/binseg/test/test_config.py
+40
-0
40 additions, 0 deletions
bob/ip/binseg/test/test_config.py
with
40 additions
and
0 deletions
bob/ip/binseg/test/test_config.py
+
40
−
0
View file @
32831d9e
...
@@ -31,6 +31,8 @@ def test_drive():
...
@@ -31,6 +31,8 @@ def test_drive():
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
3
].
shape
,
(
1
,
544
,
544
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
3
].
shape
,
(
1
,
544
,
544
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
3
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
from
..configs.datasets.drive.default
import
dataset
from
..configs.datasets.drive.default
import
dataset
...
@@ -68,6 +70,8 @@ def test_drive_mtest():
...
@@ -68,6 +70,8 @@ def test_drive_mtest():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
544
,
544
))
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
544
,
544
))
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
544
,
544
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
544
,
544
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -96,6 +100,8 @@ def test_drive_covd():
...
@@ -96,6 +100,8 @@ def test_drive_covd():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
544
,
544
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
544
,
544
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
544
,
544
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
544
,
544
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -126,6 +132,8 @@ def test_drive_ssl():
...
@@ -126,6 +132,8 @@ def test_drive_ssl():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
544
,
544
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
544
,
544
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
6
:
if
len
(
sample
)
==
6
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
544
,
544
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
544
,
544
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -167,6 +175,8 @@ def test_stare():
...
@@ -167,6 +175,8 @@ def test_stare():
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
608
,
704
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
608
,
704
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
# hack to allow testing on the CI
# hack to allow testing on the CI
from
..configs.datasets.stare
import
_maker
from
..configs.datasets.stare
import
_maker
...
@@ -201,6 +211,8 @@ def test_stare_mtest():
...
@@ -201,6 +211,8 @@ def test_stare_mtest():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
608
,
704
))
#planes,height,width
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
608
,
704
))
#planes,height,width
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
608
,
704
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
608
,
704
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -230,6 +242,8 @@ def test_stare_covd():
...
@@ -230,6 +242,8 @@ def test_stare_covd():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
608
,
704
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
608
,
704
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
608
,
704
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
608
,
704
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -247,6 +261,8 @@ def test_chasedb1():
...
@@ -247,6 +261,8 @@ def test_chasedb1():
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
960
,
960
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
960
,
960
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
for
m
in
(
"
first_annotator
"
,
"
second_annotator
"
):
for
m
in
(
"
first_annotator
"
,
"
second_annotator
"
):
d
=
importlib
.
import_module
(
f
"
...configs.datasets.chasedb1.
{
m
}
"
,
d
=
importlib
.
import_module
(
f
"
...configs.datasets.chasedb1.
{
m
}
"
,
...
@@ -280,6 +296,8 @@ def test_chasedb1_mtest():
...
@@ -280,6 +296,8 @@ def test_chasedb1_mtest():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
960
,
960
))
#planes,height,width
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
960
,
960
))
#planes,height,width
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
960
,
960
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
960
,
960
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -309,6 +327,8 @@ def test_chasedb1_covd():
...
@@ -309,6 +327,8 @@ def test_chasedb1_covd():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
960
,
960
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
960
,
960
))
#planes, height, width
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
960
,
960
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
960
,
960
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -328,6 +348,8 @@ def test_hrf():
...
@@ -328,6 +348,8 @@ def test_hrf():
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
3
].
shape
,
(
1
,
1168
,
1648
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
3
].
shape
,
(
1
,
1168
,
1648
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
3
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
from
..configs.datasets.hrf.default
import
dataset
from
..configs.datasets.hrf.default
import
dataset
nose
.
tools
.
eq_
(
len
(
dataset
),
4
)
nose
.
tools
.
eq_
(
len
(
dataset
),
4
)
...
@@ -358,6 +380,8 @@ def test_hrf_mtest():
...
@@ -358,6 +380,8 @@ def test_hrf_mtest():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
1168
,
1648
))
#planes,height,width
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
1168
,
1648
))
#planes,height,width
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
1168
,
1648
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
1168
,
1648
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -387,6 +411,8 @@ def test_hrf_covd():
...
@@ -387,6 +411,8 @@ def test_hrf_covd():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
1168
,
1648
))
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
1168
,
1648
))
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
1168
,
1648
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
1168
,
1648
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -406,6 +432,8 @@ def test_iostar():
...
@@ -406,6 +432,8 @@ def test_iostar():
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
3
].
shape
,
(
1
,
1024
,
1024
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
3
].
shape
,
(
1
,
1024
,
1024
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
3
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
for
m
in
(
"
vessel
"
,
"
optic_disc
"
):
for
m
in
(
"
vessel
"
,
"
optic_disc
"
):
d
=
importlib
.
import_module
(
f
"
...configs.datasets.iostar.
{
m
}
"
,
d
=
importlib
.
import_module
(
f
"
...configs.datasets.iostar.
{
m
}
"
,
...
@@ -438,6 +466,8 @@ def test_iostar_mtest():
...
@@ -438,6 +466,8 @@ def test_iostar_mtest():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
1024
,
1024
))
#planes,height,width
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
1024
,
1024
))
#planes,height,width
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
1024
,
1024
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
1024
,
1024
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -467,6 +497,8 @@ def test_iostar_covd():
...
@@ -467,6 +497,8 @@ def test_iostar_covd():
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
1024
,
1024
))
nose
.
tools
.
eq_
(
sample
[
2
].
shape
,
(
1
,
1024
,
1024
))
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
2
].
dtype
,
torch
.
float32
)
assert
sample
[
1
].
max
()
<=
1.0
assert
sample
[
1
].
min
()
>=
0.0
if
len
(
sample
)
==
4
:
if
len
(
sample
)
==
4
:
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
1024
,
1024
))
nose
.
tools
.
eq_
(
sample
[
3
].
shape
,
(
1
,
1024
,
1024
))
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
sample
[
3
].
dtype
,
torch
.
float32
)
...
@@ -484,6 +516,8 @@ def test_refuge():
...
@@ -484,6 +516,8 @@ def test_refuge():
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
1632
,
1632
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
1632
,
1632
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
for
m
in
(
"
disc
"
,
"
cup
"
):
for
m
in
(
"
disc
"
,
"
cup
"
):
d
=
importlib
.
import_module
(
f
"
...configs.datasets.refuge.
{
m
}
"
,
d
=
importlib
.
import_module
(
f
"
...configs.datasets.refuge.
{
m
}
"
,
...
@@ -507,6 +541,8 @@ def test_drishtigs1():
...
@@ -507,6 +541,8 @@ def test_drishtigs1():
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
1760
,
2048
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
1760
,
2048
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
for
m
in
(
"
disc_all
"
,
"
cup_all
"
,
"
disc_any
"
,
"
cup_any
"
):
for
m
in
(
"
disc_all
"
,
"
cup_all
"
,
"
disc_any
"
,
"
cup_any
"
):
d
=
importlib
.
import_module
(
f
"
...configs.datasets.drishtigs1.
{
m
}
"
,
d
=
importlib
.
import_module
(
f
"
...configs.datasets.drishtigs1.
{
m
}
"
,
...
@@ -529,6 +565,8 @@ def test_rimoner3():
...
@@ -529,6 +565,8 @@ def test_rimoner3():
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
1440
,
1088
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
1440
,
1088
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
for
m
in
(
"
disc_exp1
"
,
"
cup_exp1
"
,
"
disc_exp2
"
,
"
cup_exp2
"
):
for
m
in
(
"
disc_exp1
"
,
"
cup_exp1
"
,
"
disc_exp2
"
,
"
cup_exp2
"
):
d
=
importlib
.
import_module
(
f
"
...configs.datasets.rimoner3.
{
m
}
"
,
d
=
importlib
.
import_module
(
f
"
...configs.datasets.rimoner3.
{
m
}
"
,
...
@@ -551,6 +589,8 @@ def test_drionsdb():
...
@@ -551,6 +589,8 @@ def test_drionsdb():
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
1
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
416
,
608
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
shape
,
(
1
,
416
,
608
))
#planes, height, width
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
nose
.
tools
.
eq_
(
s
[
2
].
dtype
,
torch
.
float32
)
assert
s
[
1
].
max
()
<=
1.0
assert
s
[
1
].
min
()
>=
0.0
for
m
in
(
"
expert1
"
,
"
expert2
"
):
for
m
in
(
"
expert1
"
,
"
expert2
"
):
d
=
importlib
.
import_module
(
f
"
...configs.datasets.drionsdb.
{
m
}
"
,
d
=
importlib
.
import_module
(
f
"
...configs.datasets.drionsdb.
{
m
}
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment