加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mean.py 515 Bytes
一键复制 编辑 原始数据 按行查看 历史
kenshohara 提交于 2019-12-26 11:52 . add 0.5 meanstd
def get_mean_std(value_scale, dataset):
assert dataset in ['activitynet', 'kinetics', '0.5']
if dataset == 'activitynet':
mean = [0.4477, 0.4209, 0.3906]
std = [0.2767, 0.2695, 0.2714]
elif dataset == 'kinetics':
mean = [0.4345, 0.4051, 0.3775]
std = [0.2768, 0.2713, 0.2737]
elif dataset == '0.5':
mean = [0.5, 0.5, 0.5]
std = [0.5, 0.5, 0.5]
mean = [x * value_scale for x in mean]
std = [x * value_scale for x in std]
return mean, std
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化