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
yolov10_pytorch
Commits
c3b89894
Commit
c3b89894
authored
Jun 15, 2024
by
chenzk
Browse files
v1.0.3
parent
0086bdff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
train.py
train.py
+2
-1
No files found.
train.py
View file @
c3b89894
...
...
@@ -9,7 +9,8 @@ model = YOLOv10()
# model.train(data='coco.yaml', model='yolov10s.yaml', epochs=500, batch=256, imgsz=640, resume=True, device='0,1,2,3') # for resume
model
.
train
(
data
=
'coco.yaml'
,
model
=
'yolov10s.yaml'
,
epochs
=
500
,
batch
=
256
,
imgsz
=
640
,
device
=
'0,1,2,3'
)
# model.train(data='coco.yaml', model='yolov10s.yaml', epochs=500, batch=256, imgsz=640, device='0,1,2,3')
model
.
train
(
data
=
'coco128.yaml'
,
model
=
'yolov10s.yaml'
,
epochs
=
500
,
batch
=
256
,
imgsz
=
640
,
device
=
'0,1,2,3'
)
# Note that you can upload your trained model to HuggingFace Hub like below
# model.push_to_hub("reponame", config={"model": "yolov10n/s/m/b/l/x.yaml"})
...
...
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