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
260f9c3a
Commit
260f9c3a
authored
4 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned up TODOs, tests pass
parent
8863f3fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!102
Merge staging as release
,
!72
Pipeline task management
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
model_server/base/api.py
+1
-10
1 addition, 10 deletions
model_server/base/api.py
model_server/base/pipelines/roiset_obmap.py
+1
-1
1 addition, 1 deletion
model_server/base/pipelines/roiset_obmap.py
model_server/base/session.py
+0
-1
0 additions, 1 deletion
model_server/base/session.py
with
2 additions
and
12 deletions
model_server/base/api.py
+
1
−
10
View file @
260f9c3a
...
...
@@ -131,7 +131,6 @@ def delete_accessor(accessor_id: str):
else
:
return
_session_accessor
(
session
.
del_accessor
,
accessor_id
)
# TODO: optional lazy loading, so that batch task can be queued before file data is loaded
@app.put
(
'
/accessors/read_from_file/{filename}
'
)
def
read_accessor_from_file
(
filename
:
str
,
accessor_id
:
Union
[
str
,
None
]
=
None
):
fp
=
session
.
paths
[
'
inbound_images
'
]
/
filename
...
...
@@ -228,12 +227,4 @@ def get_task(task_id: str) -> TaskInfo:
@app.get
(
'
/tasks
'
)
def
list_tasks
()
->
Dict
[
str
,
TaskInfo
]:
res
=
session
.
tasks
.
list_tasks
()
return
res
# TODO: implement
@app.put
(
'
/tasks/run/on_files
'
)
def
task_file_batch
():
# new callable that parameterizes file name to acc_id, then passes this to to /tasks/*/run
pass
# TODO: tasks to run all enqueued items
\ No newline at end of file
return
res
\ No newline at end of file
This diff is collapsed.
Click to expand it.
model_server/base/pipelines/roiset_obmap.py
+
1
−
1
View file @
260f9c3a
...
...
@@ -58,7 +58,7 @@ class RoiSetObjectMapParams(PipelineParams):
class
RoiSetToObjectMapRecord
(
PipelineRecord
):
pass
# TODO: shorten endpoint name, maybe simplify return typespec
@router.put
(
'
/roiset_to_obmap/infer
'
)
def
roiset_object_map
(
p
:
RoiSetObjectMapParams
)
->
Union
[
RoiSetToObjectMapRecord
,
PipelineQueueRecord
]:
"""
...
...
This diff is collapsed.
Click to expand it.
model_server/base/session.py
+
0
−
1
View file @
260f9c3a
...
...
@@ -147,7 +147,6 @@ class _Session(object):
raise
InvalidPathError
(
f
'
Could not find
{
path
}
'
)
self
.
paths
[
key
]
=
Path
(
path
)
# TODO: option to automatically write to file e.g. in automated task queue processing
def
add_accessor
(
self
,
acc
:
GenericImageDataAccessor
,
accessor_id
:
str
=
None
)
->
str
:
"""
Add an accessor to session context
...
...
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