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
3603b3fd
Commit
3603b3fd
authored
4 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[test.test_summary] Fix imports
parent
03838cae
No related branches found
No related tags found
1 merge request
!13
Cleanup model implementation
Pipeline
#39944
failed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/ip/binseg/test/test_summary.py
+10
-10
10 additions, 10 deletions
bob/ip/binseg/test/test_summary.py
with
10 additions
and
10 deletions
bob/ip/binseg/test/test_summary.py
+
10
−
10
View file @
3603b3fd
...
...
@@ -4,11 +4,11 @@
import
os
import
unittest
from
..model
ing
.driu
import
build_
driu
from
..model
ing
.driuod
import
build_
driuod
from
..model
ing
.hed
import
build_
hed
from
..model
ing
.unet
import
build_
unet
from
..model
ing
.resunet
import
build_
res
50
unet
from
..model
s
.driu
import
driu
from
..model
s
.driu
_
od
import
driu
_
od
from
..model
s
.hed
import
hed
from
..model
s
.unet
import
unet
from
..model
s
.resunet
import
resunet
50
from
..utils.summary
import
summary
...
...
@@ -18,31 +18,31 @@ class Tester(unittest.TestCase):
"""
def
test_summary_driu
(
self
):
model
=
build_
driu
()
model
=
driu
()
s
,
param
=
summary
(
model
)
self
.
assertIsInstance
(
s
,
str
)
self
.
assertIsInstance
(
param
,
int
)
def
test_summary_driuod
(
self
):
model
=
build_
driuod
()
model
=
driu
_
od
()
s
,
param
=
summary
(
model
)
self
.
assertIsInstance
(
s
,
str
)
self
.
assertIsInstance
(
param
,
int
)
def
test_summary_hed
(
self
):
model
=
build_
hed
()
model
=
hed
()
s
,
param
=
summary
(
model
)
self
.
assertIsInstance
(
s
,
str
)
self
.
assertIsInstance
(
param
,
int
)
def
test_summary_unet
(
self
):
model
=
build_
unet
()
model
=
unet
()
s
,
param
=
summary
(
model
)
self
.
assertIsInstance
(
s
,
str
)
self
.
assertIsInstance
(
param
,
int
)
def
test_summary_resunet
(
self
):
model
=
build_
res
50
unet
()
model
=
resunet
()
s
,
param
=
summary
(
model
)
self
.
assertIsInstance
(
s
,
str
)
self
.
assertIsInstance
(
param
,
int
)
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