Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pavlo Beylin
MaD Patch Yolov5
Commits
6dd7dd8d
Unverified
Commit
6dd7dd8d
authored
Aug 17, 2021
by
Glenn Jocher
Committed by
GitHub
Aug 17, 2021
Browse files
Fix default `--weights yolov5s.pt` (#4458)
parent
808bcad3
Changes
1
Hide whitespace changes
Inline
Side-by-side
detect.py
View file @
6dd7dd8d
...
...
@@ -244,7 +244,7 @@ def run(weights='yolov5s.pt', # model.pt path(s)
def
parse_opt
():
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'--weights'
,
nargs
=
'+'
,
type
=
str
,
default
=
'yolov5s.p
b
'
,
help
=
'model.pt path(s)'
)
parser
.
add_argument
(
'--weights'
,
nargs
=
'+'
,
type
=
str
,
default
=
'yolov5s.p
t
'
,
help
=
'model.pt path(s)'
)
parser
.
add_argument
(
'--source'
,
type
=
str
,
default
=
'data/images'
,
help
=
'file/dir/URL/glob, 0 for webcam'
)
parser
.
add_argument
(
'--imgsz'
,
'--img'
,
'--img-size'
,
nargs
=
'+'
,
type
=
int
,
default
=
[
640
],
help
=
'inference size h,w'
)
parser
.
add_argument
(
'--conf-thres'
,
type
=
float
,
default
=
0.25
,
help
=
'confidence threshold'
)
...
...
Write
Preview
Supports
Markdown
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