leimao / Voice-Converter-CycleGAN

Voice Converter Using CycleGAN and Non-Parallel Data
https://leimao.github.io/project/Voice-Converter-CycleGAN/
MIT License
526 stars 127 forks source link

raise NoBackendError() audioread.NoBackendError #13

Closed ghost closed 5 years ago

ghost commented 5 years ago

Earlier it was working but don't know why it's keep coming screenshot 2019-02-21 at 8 55 50 pm

leimao commented 5 years ago

It has been a while since the last time I ran this program. A quick google reveals that there might be some problems with the audioread. I will find some time to run the program again to see if your problem is reproducible, meanwhile please troubleshoot on your own since this really seems like to be a dependency problem.

leimao commented 5 years ago

I ran the program and found the program was totally fine.

$ python train.py --train_A_dir ./data/vcc2016_training/SF1 --train_B_dir ./data/vcc2016_training/TM1 --model_dir ./model/sf1_tm1 --model_name sf1_tm1.ckpt --random_seed 0 --validation_A_dir ./data/evaluation_all/SF1 --validation_B_dir ./data/evaluation_all/TM1 --output_dir ./validation_output --tensorboard_log_dir ./log
Preprocessing Data...
Log Pitch A
Mean: 5.388794, Std: 0.239881
Log Pitch B
Mean: 4.789306, Std: 0.216173
Input data fixed.
Preprocessing Done.
Time Elapsed for Data Preprocessing: 00:07:47
2019-02-21 16:30:23.167502: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:964] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-02-21 16:30:23.168071: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with properties: 
name: TITAN V major: 7 minor: 0 memoryClockRate(GHz): 1.455
pciBusID: 0000:04:00.0
totalMemory: 11.75GiB freeMemory: 10.02GiB
2019-02-21 16:30:23.168090: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
2019-02-21 16:30:23.494168: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-02-21 16:30:23.494204: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988]      0 
2019-02-21 16:30:23.494211: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0:   N 
2019-02-21 16:30:23.494473: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9664 MB memory) -> physical GPU (device: 0, name: TITAN V, pci bus id: 0000:04:00.0, compute capability: 7.0)
Epoch: 0
Iteration: 0000000, Generator Learning Rate: 0.0002000, Discriminator Learning Rate: 0.0001000, Generator Loss : 30.622, Discriminator Loss : 0.553
Iteration: 0000050, Generator Learning Rate: 0.0002000, Discriminator Learning Rate: 0.0001000, Generator Loss : 26.810, Discriminator Loss : 0.277
Iteration: 0000100, Generator Learning Rate: 0.0002000, Discriminator Learning Rate: 0.0001000, Generator Loss : 22.953, Discriminator Loss : 0.188
Iteration: 0000150, Generator Learning Rate: 0.0002000, Discriminator Learning Rate: 0.0001000, Generator Loss : 24.726, Discriminator Loss : 0.013

I believe it is your dependency problem. Please reinstall all the packages if necessary.

leimao commented 5 years ago

Since it is not a program problem. This thread is marked as resolved.

ghost commented 5 years ago

Sir, Can you please specify the version of all the dependencies.It will help me resolve the issue. Thanks

On Fri, Feb 22, 2019 at 6:05 AM Lei Mao notifications@github.com wrote:

Closed #13 https://github.com/leimao/Voice_Converter_CycleGAN/issues/13.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/leimao/Voice_Converter_CycleGAN/issues/13#event-2156587297, or mute the thread https://github.com/notifications/unsubscribe-auth/Apu58FkOKxH5wPeA0pXM_PHOy4WrTTcuks5vPztjgaJpZM4bHsY2 .

leimao commented 5 years ago

Sir, Can you please specify the version of all the dependencies.It will help me resolve the issue. Thanks On Fri, Feb 22, 2019 at 6:05 AM Lei Mao @.***> wrote: Closed #13 <#13>. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#13 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/Apu58FkOKxH5wPeA0pXM_PHOy4WrTTcuks5vPztjgaJpZM4bHsY2 .

I used Python 3.6. The rest of things are up-to-date, you can do apt-get or pip to install. The most suspicious dependency you are having is librosa. I tested using librosa 0.6.3.

pip show librosa
Name: librosa
Version: 0.6.3
Summary: Python module for audio and music processing
Home-page: http://github.com/librosa/librosa
Author: Brian McFee
Author-email: brian.mcfee@nyu.edu
License: ISC
Location: /home/leimao/.local/lib/python3.6/site-packages
Requires: resampy, scipy, joblib, six, numba, numpy, audioread, decorator, scikit-learn
ghost commented 5 years ago

Sir I have installed ffmpeg 4.1.1 systemwise using homebrew. Is it necessary to install ffmpeg using pip ? or how can i use ffmpeg 4.1.1 in a virtual env?

On Sat, Feb 23, 2019 at 3:29 AM Lei Mao notifications@github.com wrote:

Sir, Can you please specify the version of all the dependencies.It will help me resolve the issue. Thanks … <#m-4285780083201972356> On Fri, Feb 22, 2019 at 6:05 AM Lei Mao @.***> wrote: Closed #13 https://github.com/leimao/Voice_Converter_CycleGAN/issues/13 <#13 https://github.com/leimao/Voice_Converter_CycleGAN/issues/13>. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#13 (comment) https://github.com/leimao/Voice_Converter_CycleGAN/issues/13#event-2156587297>, or mute the thread https://github.com/notifications/unsubscribe-auth/Apu58FkOKxH5wPeA0pXM_PHOy4WrTTcuks5vPztjgaJpZM4bHsY2 .

I used Python 3.6. The rest of things are up-to-date, you can do apt-get or pip to install. The most suspicious dependency you are having is librosa. I tested using librosa 0.6.3.

pip show librosa

Name: librosa

Version: 0.6.3

Summary: Python module for audio and music processing

Home-page: http://github.com/librosa/librosa

Author: Brian McFee

Author-email: brian.mcfee@nyu.edu

License: ISC

Location: /home/leimao/.local/lib/python3.6/site-packages

Requires: resampy, scipy, joblib, six, numba, numpy, audioread, decorator, scikit-learn

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/leimao/Voice_Converter_CycleGAN/issues/13#issuecomment-466562604, or mute the thread https://github.com/notifications/unsubscribe-auth/Apu58ALQJaGvFK1klNlZ6HL1EkKHAmzvks5vQGgtgaJpZM4bHsY2 .

ghost commented 5 years ago

I did everything but still getting the same error

Preprocessing Data...

Traceback (most recent call last):

File "train.py", line 196, in

train(train_A_dir = train_A_dir, train_B_dir = train_B_dir, model_dir =

model_dir, model_name = model_name, random_seed = random_seed, validation_A_dir = validation_A_dir, validation_B_dir = validation_B_dir, output_dir = output_dir, tensorboard_log_dir = tensorboard_log_dir)

File "train.py", line 32, in train

wavs_A = load_wavs(wav_dir = train_A_dir, sr = sampling_rate)

File "/Users/kunalkumar/Desktop/Voice_Converter_CycleGAN/preprocess.py", line 11, in load_wavs

wav, _ = librosa.load(file_path, sr = sr, mono = True)

File "/Users/kunalkumar/Desktop/Voice_Converter_CycleGAN/env/lib/python3.6/site-packages/librosa/core/audio.py", line 119, in load

with audioread.audio_open(os.path.realpath(path)) as input_file:

File "/Users/kunalkumar/Desktop/Voice_Converter_CycleGAN/env/lib/python3.6/site-packages/audioread/init.py", line 116, in audio_open

raise NoBackendError()

audioread.NoBackendError

On Fri, Mar 1, 2019 at 11:44 AM Kunal Kumar shoryakk816@gmail.com wrote:

Sir I have installed ffmpeg 4.1.1 systemwise using homebrew. Is it necessary to install ffmpeg using pip ? or how can i use ffmpeg 4.1.1 in a virtual env?

On Sat, Feb 23, 2019 at 3:29 AM Lei Mao notifications@github.com wrote:

Sir, Can you please specify the version of all the dependencies.It will help me resolve the issue. Thanks … <#m_-5780225549983906628m-4285780083201972356_> On Fri, Feb 22, 2019 at 6:05 AM Lei Mao @.***> wrote: Closed #13 https://github.com/leimao/Voice_Converter_CycleGAN/issues/13 <#13 https://github.com/leimao/Voice_Converter_CycleGAN/issues/13>. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#13 (comment) https://github.com/leimao/Voice_Converter_CycleGAN/issues/13#event-2156587297>, or mute the thread https://github.com/notifications/unsubscribe-auth/Apu58FkOKxH5wPeA0pXM_PHOy4WrTTcuks5vPztjgaJpZM4bHsY2 .

I used Python 3.6. The rest of things are up-to-date, you can do apt-get or pip to install. The most suspicious dependency you are having is librosa. I tested using librosa 0.6.3.

pip show librosa

Name: librosa

Version: 0.6.3

Summary: Python module for audio and music processing

Home-page: http://github.com/librosa/librosa

Author: Brian McFee

Author-email: brian.mcfee@nyu.edu

License: ISC

Location: /home/leimao/.local/lib/python3.6/site-packages

Requires: resampy, scipy, joblib, six, numba, numpy, audioread, decorator, scikit-learn

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/leimao/Voice_Converter_CycleGAN/issues/13#issuecomment-466562604, or mute the thread https://github.com/notifications/unsubscribe-auth/Apu58ALQJaGvFK1klNlZ6HL1EkKHAmzvks5vQGgtgaJpZM4bHsY2 .

leimao commented 5 years ago

One way to get around is to use TensorFlow containers. Please use this container for the program. The container has already installed FFMPEG, etc. You will only have to install PyWorld and Progressivebar2. I tested the training in this container and it worked fine.

ghost commented 5 years ago

Sir when i am trying to pull the container, it is saying unauthorized : authentication required what to do now?

On Fri, Mar 1, 2019 at 1:40 PM Lei Mao notifications@github.com wrote:

One way to get around is to use TensorFlow containers. Please use this container https://ngc.nvidia.com/catalog/containers/nvidia:tensorflow for the program. The container has already installed FFMPEG, etc. You will only have to install PyWorld and Progressivebar2. I tested the training in this container and it worked fine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/leimao/Voice_Converter_CycleGAN/issues/13#issuecomment-468580328, or mute the thread https://github.com/notifications/unsubscribe-auth/Apu58IsndXey1zbeO_bESqVR6NCrsniZks5vSOB1gaJpZM4bHsY2 .

ghost commented 5 years ago

with this support for CPU?

On Sat, Mar 2, 2019 at 2:21 PM Kunal Kumar shoryakk816@gmail.com wrote:

Sir when i am trying to pull the container, it is saying unauthorized : authentication required what to do now?

On Fri, Mar 1, 2019 at 1:40 PM Lei Mao notifications@github.com wrote:

One way to get around is to use TensorFlow containers. Please use this container https://ngc.nvidia.com/catalog/containers/nvidia:tensorflow for the program. The container has already installed FFMPEG, etc. You will only have to install PyWorld and Progressivebar2. I tested the training in this container and it worked fine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/leimao/Voice_Converter_CycleGAN/issues/13#issuecomment-468580328, or mute the thread https://github.com/notifications/unsubscribe-auth/Apu58IsndXey1zbeO_bESqVR6NCrsniZks5vSOB1gaJpZM4bHsY2 .

leimao commented 5 years ago

You will have to register first probably. If you are not familiar with Docker container, I suggest you to google Docker or visit my blog post to have some basic idea. If your problem persists, please let the NVIDIA NGC people know, they will be glad to help.

leimao commented 5 years ago

Try docker login using the method here.