Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ultralytics-YOLOv8_pytorch
Commits
1efe33af
Commit
1efe33af
authored
Jun 03, 2024
by
dengjb
Browse files
update train.py
parent
b273d601
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
train.py
train.py
+1
-1
No files found.
train.py
View file @
1efe33af
...
@@ -4,4 +4,4 @@ from ultralytics import YOLO
...
@@ -4,4 +4,4 @@ from ultralytics import YOLO
model
=
YOLO
(
"yolov8s.yaml"
)
# build a new model from scratch
model
=
YOLO
(
"yolov8s.yaml"
)
# build a new model from scratch
#model = YOLO("yolov8s.pt") # load a pretrained model (recommended for training with a new dataset)
#model = YOLO("yolov8s.pt") # load a pretrained model (recommended for training with a new dataset)
# Use the model
# Use the model
model
.
train
(
data
=
"coco.yaml"
,
epochs
=
100
,
verbose
=
True
)
model
.
train
(
data
=
"coco
128
.yaml"
,
epochs
=
100
,
verbose
=
True
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment