Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
02537195
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
接近 2 年 前同步成功
通知
210
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
02537195
编写于
6月 14, 2021
作者:
H
Hui Zhang
提交者:
GitHub
6月 14, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #668 from PaddlePaddle/feat
audio feature
上级
1cd88d26
b08384cd
变更
4
展开全部
显示空白变更内容
内联
并排
Showing
4 changed file
with
1222 addition
and
12 deletion
+1222
-12
.notebook/audio_feature.ipynb
.notebook/audio_feature.ipynb
+1207
-0
third_party/nnAudio/.gitignore
third_party/nnAudio/.gitignore
+3
-0
third_party/nnAudio/nnAudio/Spectrogram.py
third_party/nnAudio/nnAudio/Spectrogram.py
+7
-4
third_party/nnAudio/setup.py
third_party/nnAudio/setup.py
+5
-8
未找到文件。
.notebook/audio_feature.ipynb
0 → 100644
浏览文件 @
02537195
此差异已折叠。
点击以展开。
third_party/nnAudio/.gitignore
0 → 100644
浏览文件 @
02537195
build
dist
*.egg-info/
third_party/nnAudio/nnAudio/Spectrogram.py
浏览文件 @
02537195
...
...
@@ -165,9 +165,13 @@ class STFT(torch.nn.Module):
# self.kernel_cos = torch.nn.Parameter(self.kernel_cos, requires_grad=self.trainable)
# Applying window functions to the Fourier kernels
if
window
:
window_mask
=
torch
.
tensor
(
window_mask
)
wsin
=
kernel_sin
*
window_mask
wcos
=
kernel_cos
*
window_mask
else
:
wsin
=
kernel_sin
wcos
=
kernel_cos
if
self
.
trainable
==
False
:
self
.
register_buffer
(
'wsin'
,
wsin
)
...
...
@@ -179,7 +183,6 @@ class STFT(torch.nn.Module):
self
.
register_parameter
(
'wsin'
,
wsin
)
self
.
register_parameter
(
'wcos'
,
wcos
)
# Prepare the shape of window mask so that it can be used later in inverse
self
.
register_buffer
(
'window_mask'
,
window_mask
.
unsqueeze
(
0
).
unsqueeze
(
-
1
))
...
...
third_party/nnAudio/setup.py
浏览文件 @
02537195
...
...
@@ -2,9 +2,6 @@ import setuptools
import
codecs
import
os.path
with
open
(
"README.md"
,
"r"
)
as
fh
:
long_description
=
fh
.
read
()
def
read
(
rel_path
):
here
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
with
codecs
.
open
(
os
.
path
.
join
(
here
,
rel_path
),
'r'
)
as
fp
:
...
...
@@ -24,7 +21,7 @@ setuptools.setup(
author
=
"KinWaiCheuk"
,
author_email
=
"u3500684@connect.hku.hk"
,
description
=
"A fast GPU audio processing toolbox with 1D convolutional neural network"
,
long_description
=
long_description
,
long_description
=
''
,
long_description_content_type
=
"text/markdown"
,
url
=
"https://github.com/KinWaiCheuk/nnAudio"
,
packages
=
setuptools
.
find_packages
(),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录