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
ef341002
Commit
ef341002
authored
5 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Removed roughed-in COCO models
parent
71ce1f57
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/extensions/yolov8/__init__.py
+0
-0
0 additions, 0 deletions
model_server/extensions/yolov8/__init__.py
model_server/extensions/yolov8/models.py
+0
-43
0 additions, 43 deletions
model_server/extensions/yolov8/models.py
with
0 additions
and
43 deletions
model_server/extensions/yolov8/__init__.py
deleted
100644 → 0
+
0
−
0
View file @
71ce1f57
This diff is collapsed.
Click to expand it.
model_server/extensions/yolov8/models.py
deleted
100644 → 0
+
0
−
43
View file @
71ce1f57
from
typing
import
List
from
pydantic
import
BaseModel
from
ultralytics
import
YOLO
from
...base.accessors
import
GenericImageDataAccessor
from
...base.models
import
InstanceSegmentationModel
from
...base.roiset
import
RoiSet
class
YoloV8Params
(
BaseModel
):
pt_file
:
str
duplicate
:
bool
=
True
class
YoloModel
(
InstanceSegmentationModel
):
def
__init__
(
self
,
params
:
YoloV8Params
,
autoload
=
True
):
# initialize from pretrained model
super
().
__init__
(
autoload
,
params
)
def
load
(
self
):
self
.
yolo
=
YOLO
(
self
.
params
.
pt_file
)
def
_infer_yolo_seg
(
self
,
img
:
GenericImageDataAccessor
)
->
RoiSet
:
# only populates bounding box info
pass
def
_infer_yolo_det
(
self
,
img
:
GenericImageDataAccessor
)
->
RoiSet
:
# also populates segmentation masks
pass
def
label_instance_class
(
self
,
img
:
GenericImageDataAccessor
,
mask
:
GenericImageDataAccessor
,
**
kwargs
)
->
GenericImageDataAccessor
:
roiset
=
self
.
_infer_yolo_seg
(
img
)
return
roiset
.
acc_obj_ids
def
export
(
self
):
# export pretrained model
pass
def
train
(
self
,
roisets
:
List
[
RoiSet
]):
coco_list
=
[
r
.
serialize_coco
for
r
in
roisets
]
self
.
yolo
.
train
(
coco_list
)
\ 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