Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugs in matlab #9

Open
ucasiggcas opened this issue Jun 17, 2019 · 24 comments
Open

bugs in matlab #9

ucasiggcas opened this issue Jun 17, 2019 · 24 comments

Comments

@ucasiggcas
Copy link

ucasiggcas commented Jun 17, 2019

Dear,

When I run the make_train_noisy.m

`'rm'不是内部或外部命令,也不是可运行的程序
或批处理文件。
'rm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
错误使用 parpool (line 113)
Found an interactive session. You cannot have multiple interactive sessions
open simultaneously. To terminate the existing session, use
'delete(gcp('nocreate'))'.

出错 make_train_noisy (line 19)
parpool(4);`

So I commented
% parpool(4);

but also has another problem
2.
`错误使用 make_train_noisy>(parfor supply)
索引超出数组范围。

出错 make_train_noisy (line 32)
parfor i = 1:1:size(temp_timit_list, 1)`

So how to solve the problem ?

Thx

@ucasiggcas
Copy link
Author

When I solve the second problem,

it ups another

错误使用 make_train_noisy (line 32)
在 'v_addnoise' 的工作进程上引发了 UndefinedFunction 错误。这可能是因为在这些工作进程上无
法访问包含 'v_addnoise' 的文件。使用 addAttachedFiles(pool, files) 指定要附加的必要文
件。请参阅 'parallel.Pool/addAttachedFiles'的相关文档以获取更多详细信息。

原因:
未定义与 'double' 类型的输入参数相对应的函数 'v_addnoise'。
So where is the v_addnoise function ?

@ucasiggcas
Copy link
Author

And I got into tears when I see the problem
4.
错误使用 cat
内存不足。请键入 HELP MEMORY 查看选项。

出错 cell2mat (line 86)
m = cat(2,m{:});

出错 make_train_noisy (line 52)
noisy_temp = cell2mat(noisy_temp');

OS:Win10
Ram:16GB

Need more ??

@ucasiggcas
Copy link
Author

ucasiggcas commented Jun 17, 2019

After I close more App
I find below

Parallel pool using the 'local' profile is shutting down.
k=1
aug=1
only one file in the ./train/clean/
clean_num001.raw
and one file in the ./train/noisy/
noisy_num001.raw

is it right ?
if not , how could I deal with it ?

@ucasiggcas
Copy link
Author

6
And what's the data in the
./speech/timit_coretest
in make_test_noisy.m

Thx

@MayMiao0923
Copy link

你在运行make_train_noisy.m和make_test_noisy.m文件的时候,你的TIMIT语料库里面的语料是怎么放置得到呢,我在运行的时候,程序一直无法得出结果,是需要在命令行窗口输入什么吗?我的matlab运行的过程就是下面图片显示的那样,我是直接把TIMIT文件夹复制到作者所给的路径下的。Train文件夹里的WAV文件是我之前测试时候复制出来的部分WAV文件。

捕获2

@MayMiao0923
Copy link

对于你的问题1,我想你可以把system语句进行修改,比如:
把 system('rm -rf ../SE/data/train/noisy/');
修改为 system('cmd.exe rm -rf ../SE/data/train/noisy/
');
在rm前加上cmd.exe
我在查看了很多方法之后就是这么解决的

@ucasiggcas
Copy link
Author

ucasiggcas commented Jun 18, 2019

@
其实那个rm -rf就是个删除.keep文件的,手动删除即可

去掉你的注释%即可

@MayMiao0923

@MayMiao0923
Copy link

@ucasiggcas
你的意思是timit_list的路径从
timit_list = dirPlus('./speech/TIMIT/TRAIN', 'FileFilter', '.(wav|WAV)$');

改为
timit_list = dirPlus('./speech/TIMIT/', 'FileFilter', '.(wav|WAV)$');
这个意思吗?
那么我在TIMIT文件夹中的文件是不是应该把TRAIN文件夹中的文件直接放到TIMIT文件夹下,把其他的TEST和DOC文件夹删除

@ucasiggcas
Copy link
Author

ucasiggcas commented Jun 18, 2019

其他的TIMIT文件不要动。恢复到原来的样子。

@MayMiao0923
Copy link

我在更改了路径之后,运行结果出现了下面的错误,您先看一下我更改的内容是不是正确。
我这里显示的错误是
未定义函数或变量 'dirPlus'。

出错 make_train_noisy (line 10)
timit_list = dirPlus('./speech/TIMIT', 'FileFilter', '.(wav|WAV)$');

捕获3

@ucasiggcas
Copy link
Author

那个list去掉你的注释%
不要创新了

未定义函数其实是路径问题,但我也懒得解决这个。
直接将那个函数复制到你这个脚本下面即可。省事。

@MayMiao0923
Copy link

还有一个问题,作者给出的noise-15的USTC语料库,我下载下来的文件是RAW格式,需要先转换成WAV格式吗,如果需要的话,怎么转换呢?
捕获4

@ucasiggcas
Copy link
Author

没事的,直接跑。

@ucasiggcas
Copy link
Author

@MayMiao0923
大佬那个还是改为TIMIT/TRAIN吧
是我搞错了。

但是验证集咋个设置啊,这是个问题

@MayMiao0923
Copy link

Starting parallel pool (parpool) using the 'local' profile ... connected to 4 workers.

k =

 1

Analyzing and transferring files to the workers ...done.
错误使用 make_train_noisy (line 34)
在 'addnoise' 的工作进程上引发了 UndefinedFunction 错误。这可能是因为在这些工作进程上无法访问包含 'addnoise' 的文件。使用 addAttachedFiles(pool, files) 指定要附加的必要
文件。请参阅 'parallel.Pool/addAttachedFiles'的相关文档以获取更多详细信息。

原因:
未定义与 'double' 类型的输入参数相对应的函数 'addnoise'。

你的这个问题有没有解决?

@ucasiggcas
Copy link
Author

这是缺个函数,我从github上找的
应该是v_addnoise吧
作者也贴出了来源,
和我从github上找的来源是一样的

http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html

@MayMiao0923
Copy link

我在安装了voicebox工具箱之后可以正常运行make_train_noisy.m文件,但是在SE\data\train文件夹下的noisy和clean文件夹中分别只有一个RAW文件,您运行出来是这样吗?
捕获6
捕获7

@ucasiggcas
Copy link
Author

你可以看看我上面的

@MayMiao0923
Copy link

看来咱们都是生成了一个文件,我在运行了make_test_noisy.m之后,在SE\data\test中的clean和noisy文件夹中生成的结果和make_train_noisy.m运行后得到的结果不同
捕获8
捕获9
并且我在matlab命令行中得到了下面这样的结果
捕获10

@ucasiggcas
Copy link
Author

你可以看看是否和我的结果一样,见我最新的issue

@MayMiao0923
Copy link

我把make_train_noisy.m中的aug的值改成了20,出现了下面错误,你出现过这个错误么
捕获16

@ucasiggcas
Copy link
Author

我没改这个参数,
你这是内存不足了。

@Code-CloudSG
Copy link

When I solve the second problem,

it ups another

Wrong use of make_train_noisy (line 32)
caused an UndefinedFunction error on the worker process of'v_addnoise'. This may be because
files containing'v_addnoise' cannot be accessed on these worker processes . Use addAttachedFiles(pool, files) to specify the necessary files to be attached
. Please refer to the related document of'parallel.Pool/addAttachedFiles' for more details.

Reason:
The function'v_addnoise' corresponding to the input parameter of type'double' is not defined.
So where is the v_addnoise function?

Hello could you say how do you

Dear,

When I run the make_train_noisy.m

`'rm'不是内部或外部命令,也不是可运行的程序
或批处理文件。
'rm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
错误使用 parpool (line 113)
Found an interactive session. You cannot have multiple interactive sessions
open simultaneously. To terminate the existing session, use
'delete(gcp('nocreate'))'.

出错 make_train_noisy (line 19)
parpool(4);`

So I commented
% parpool(4);

but also has another problem
2.
`错误使用 make_train_noisy>(parfor supply)
索引超出数组范围。

出错 make_train_noisy (line 32)
parfor i = 1:1:size(temp_timit_list, 1)`

So how to solve the problem ?

Thx

How do you solve this problem?

@Code-CloudSG
Copy link

make_train_noisy (line 32)
parfor i = 1:1:size(temp_timit_list, 1)`

So how to solve the problem ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants