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
efc48f21
Commit
efc48f21
authored
1 year ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Don't try to write PNG if > 3 channels
parent
91333047
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model_server/extensions/chaeo/products.py
+3
-3
3 additions, 3 deletions
model_server/extensions/chaeo/products.py
with
3 additions
and
3 deletions
model_server/extensions/chaeo/products.py
+
3
−
3
View file @
efc48f21
...
...
@@ -224,7 +224,7 @@ def export_patches_from_zstack(
def
_export_patch
(
roi
):
patch
=
patches_acc
.
iat_yxcz
(
i
)
ext
=
'
tif
'
if
make_3d
else
'
png
'
ext
=
'
tif
'
if
make_3d
or
patches_acc
.
chroma
>
3
else
'
png
'
fname
=
f
'
{
prefix
}
-la
{
roi
.
label
:
04
d
}
-zi
{
roi
.
zi
:
04
d
}
.
{
ext
}
'
if
patch
.
dtype
is
np
.
dtype
(
'
uint16
'
):
...
...
@@ -249,7 +249,7 @@ def export_multichannel_patches_from_zstack(
roiset
,
rgb_overlay_channels
:
list
=
None
,
rgb_overlay_weights
:
list
=
[
1.0
,
1.0
,
1.0
],
rgb_
white_channel
:
int
=
None
,
white_channel
:
int
=
None
,
**
kwargs
):
"""
...
...
@@ -294,7 +294,7 @@ def export_multichannel_patches_from_zstack(
# mstack = InMemoryDataAccessor(mdata)
# rgb_roiset = RoiSet(roiset.acc_obj_ids, mstack, roiset.params)
# return export_patches_from_zstack(where, rgb_roiset, **kwargs)
kwargs
[
'
white_channel
'
]
=
rgb_
white_channel
kwargs
[
'
white_channel
'
]
=
white_channel
kwargs
[
'
rgb_overlay_channels
'
]
=
rgb_overlay_channels
kwargs
[
'
rgb_overlay_weights
'
]
=
rgb_overlay_weights
return
export_patches_from_zstack
(
where
,
roiset
,
**
kwargs
)
\ No newline at end of file
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