Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SVLT
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
ALMF
SVLT
Commits
a1e85ffc
Commit
a1e85ffc
authored
7 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
No longer return model_id in record
parent
6735a2f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
model_server/base/pipelines/params.py
+0
-1
0 additions, 1 deletion
model_server/base/pipelines/params.py
model_server/base/pipelines/segment.py
+6
-1
6 additions, 1 deletion
model_server/base/pipelines/segment.py
with
6 additions
and
2 deletions
model_server/base/pipelines/params.py
+
0
−
1
View file @
a1e85ffc
...
...
@@ -33,6 +33,5 @@ class PipelineParams(BaseModel):
class
PipelineRecord
(
BaseModel
):
output_accessor_id
:
str
interm_accessor_ids
:
Union
[
List
[
str
],
None
]
model_id
:
str
success
:
bool
timer
:
dict
This diff is collapsed.
Click to expand it.
model_server/base/pipelines/segment.py
+
6
−
1
View file @
a1e85ffc
...
...
@@ -16,14 +16,19 @@ router = APIRouter(
tags
=
[
'
pipelines
'
],
)
class
SegmentParams
(
PipelineParams
):
accessor_id
:
str
=
Field
(
description
=
'
ID(s) of previously loaded accessor(s) to use as pipeline input
'
)
model_id
:
str
=
Field
(
description
=
'
ID(s) of previously loaded segmentation model(s)
'
)
channel
:
int
=
Field
(
None
,
description
=
'
Channel to use for segmentation; use all channels if empty.
'
)
class
SegmentRecord
(
PipelineRecord
):
pass
@router.put
(
'
/segment
'
)
def
segment
(
p
:
SegmentParams
)
->
Pipeline
Record
:
def
segment
(
p
:
SegmentParams
)
->
Segment
Record
:
"""
Run a semantic segmentation model to compute a binary mask from an input image
"""
...
...
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