Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yolov5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
yolov5
Commits
a833ee2a
Unverified
提交
a833ee2a
authored
4月 29, 2021
作者:
Glenn Jocher
提交者:
GitHub
4月 29, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update check_requirements() exclude list (#2974)
上级
dbce1bc5
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
8 行增加
和
6 行删除
+8
-6
detect.py
detect.py
+1
-1
hubconf.py
hubconf.py
+1
-1
test.py
test.py
+1
-1
train.py
train.py
+1
-1
autoanchor.py
utils/autoanchor.py
+2
-1
plots.py
utils/plots.py
+2
-1
没有找到文件。
detect.py
浏览文件 @
a833ee2a
...
...
@@ -172,7 +172,7 @@ if __name__ == '__main__':
parser
.
add_argument
(
'--hide-conf'
,
default
=
False
,
action
=
'store_true'
,
help
=
'hide confidences'
)
opt
=
parser
.
parse_args
()
print
(
opt
)
check_requirements
(
exclude
=
(
'pycocotools'
,
'thop'
))
check_requirements
(
exclude
=
(
'
tensorboard'
,
'
pycocotools'
,
'thop'
))
with
torch
.
no_grad
():
if
opt
.
update
:
# update all models (to fix SourceChangeWarning)
...
...
hubconf.py
浏览文件 @
a833ee2a
...
...
@@ -15,7 +15,7 @@ from utils.google_utils import attempt_download
from
utils.torch_utils
import
select_device
dependencies
=
[
'torch'
,
'yaml'
]
check_requirements
(
Path
(
__file__
)
.
parent
/
'requirements.txt'
,
exclude
=
(
'pycocotools'
,
'thop'
))
check_requirements
(
Path
(
__file__
)
.
parent
/
'requirements.txt'
,
exclude
=
(
'
tensorboard'
,
'
pycocotools'
,
'thop'
))
def
create
(
name
,
pretrained
,
channels
,
classes
,
autoshape
,
verbose
):
...
...
test.py
浏览文件 @
a833ee2a
...
...
@@ -310,7 +310,7 @@ if __name__ == '__main__':
opt
.
save_json
|=
opt
.
data
.
endswith
(
'coco.yaml'
)
opt
.
data
=
check_file
(
opt
.
data
)
# check file
print
(
opt
)
check_requirements
()
check_requirements
(
exclude
=
(
'tensorboard'
,
'pycocotools'
,
'thop'
)
)
if
opt
.
task
in
(
'train'
,
'val'
,
'test'
):
# run normally
test
(
opt
.
data
,
...
...
train.py
浏览文件 @
a833ee2a
...
...
@@ -497,7 +497,7 @@ if __name__ == '__main__':
set_logging
(
opt
.
global_rank
)
if
opt
.
global_rank
in
[
-
1
,
0
]:
check_git_status
()
check_requirements
()
check_requirements
(
exclude
=
(
'pycocotools'
,
'thop'
)
)
# Resume
wandb_run
=
check_wandb_resume
(
opt
)
...
...
utils/autoanchor.py
浏览文件 @
a833ee2a
...
...
@@ -3,7 +3,6 @@
import
numpy
as
np
import
torch
import
yaml
from
scipy.cluster.vq
import
kmeans
from
tqdm
import
tqdm
from
utils.general
import
colorstr
...
...
@@ -76,6 +75,8 @@ def kmean_anchors(path='./data/coco128.yaml', n=9, img_size=640, thr=4.0, gen=10
Usage:
from utils.autoanchor import *; _ = kmean_anchors()
"""
from
scipy.cluster.vq
import
kmeans
thr
=
1.
/
thr
prefix
=
colorstr
(
'autoanchor: '
)
...
...
utils/plots.py
浏览文件 @
a833ee2a
...
...
@@ -16,7 +16,6 @@ import seaborn as sns
import
torch
import
yaml
from
PIL
import
Image
,
ImageDraw
,
ImageFont
from
scipy.signal
import
butter
,
filtfilt
from
utils.general
import
xywh2xyxy
,
xyxy2xywh
from
utils.metrics
import
fitness
...
...
@@ -54,6 +53,8 @@ def hist2d(x, y, n=100):
def
butter_lowpass_filtfilt
(
data
,
cutoff
=
1500
,
fs
=
50000
,
order
=
5
):
from
scipy.signal
import
butter
,
filtfilt
# https://stackoverflow.com/questions/28536191/how-to-filter-smooth-with-scipy-numpy
def
butter_lowpass
(
cutoff
,
fs
,
order
):
nyq
=
0.5
*
fs
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论