Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
model_server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Show more breadcrumbs
Christopher Randolph Rhodes
model_server
Commits
1c543e96
Commit
1c543e96
authored
11 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Test on expanded, padded patches
parent
6fee8b22
No related branches found
No related tags found
2 merge requests
!18
Completed (de)serialization of RoiSet
,
!16
Completed (de)serialization of RoiSet
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_roiset.py
+17
-2
17 additions, 2 deletions
tests/test_roiset.py
with
17 additions
and
2 deletions
tests/test_roiset.py
+
17
−
2
View file @
1c543e96
...
...
@@ -242,6 +242,8 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
output_path
/
'
multichannel
'
/
'
mono_2d_patches
'
,
white_channel
=
3
,
draw_bounding_box
=
True
,
expanded
=
True
,
pad_to
=
256
,
)
result
=
generate_file_accessor
(
files
[
0
])
self
.
assertEqual
(
result
.
chroma
,
1
)
...
...
@@ -252,6 +254,8 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
white_channel
=
3
,
draw_bounding_box
=
True
,
bounding_box_channel
=
1
,
expanded
=
True
,
pad_to
=
256
,
)
result
=
generate_file_accessor
(
files
[
0
])
self
.
assertEqual
(
result
.
chroma
,
3
)
...
...
@@ -263,7 +267,9 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
rgb_overlay_channels
=
(
3
,
None
,
None
),
draw_mask
=
True
,
mask_channel
=
0
,
rgb_overlay_weights
=
(
0.1
,
1.0
,
1.0
)
rgb_overlay_weights
=
(
0.1
,
1.0
,
1.0
),
expanded
=
True
,
pad_to
=
256
,
)
result
=
generate_file_accessor
(
files
[
0
])
self
.
assertEqual
(
result
.
chroma
,
3
)
...
...
@@ -274,7 +280,9 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
rgb_overlay_channels
=
(
3
,
None
,
None
),
draw_contour
=
True
,
contour_channel
=
1
,
rgb_overlay_weights
=
(
0.1
,
1.0
,
1.0
)
rgb_overlay_weights
=
(
0.1
,
1.0
,
1.0
),
expanded
=
True
,
pad_to
=
256
,
)
result
=
generate_file_accessor
(
files
[
0
])
self
.
assertEqual
(
result
.
chroma
,
3
)
...
...
@@ -283,14 +291,19 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
def
test_multichannel_to_multichannel_tif_patches
(
self
):
files
=
self
.
roiset
.
export_patches
(
output_path
/
'
multichannel
'
/
'
multichannel_tif_patches
'
,
expanded
=
True
,
pad_to
=
256
,
)
result
=
generate_file_accessor
(
files
[
0
])
self
.
assertEqual
(
result
.
chroma
,
5
)
self
.
assertEqual
(
result
.
nz
,
1
)
def
test_multichannel_annotated_zstack
(
self
):
file
=
self
.
roiset
.
export_annotated_zstack
(
output_path
/
'
multichannel
'
/
'
annotated_zstack
'
,
'
test_multichannel_annotated_zstack
'
,
expanded
=
True
,
pad_to
=
256
,
)
result
=
generate_file_accessor
(
file
)
self
.
assertEqual
(
result
.
chroma
,
self
.
stack
.
chroma
)
...
...
@@ -300,6 +313,8 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
file
=
self
.
roiset
.
export_annotated_zstack
(
output_path
/
'
annotated_zstack
'
,
channel
=
3
,
expanded
=
True
,
pad_to
=
256
,
)
result
=
generate_file_accessor
(
file
)
self
.
assertEqual
(
result
.
hw
,
self
.
roiset
.
acc_raw
.
hw
)
...
...
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