実現したいこと
Tactron2 Github
https://github.com/NVIDIA/tacotron2
tacotron2を使って音声合成をローカル環境で試した時の備忘録
https://trend-tracer.com/python-tacotron2/#
上記のサイトを参考にし、Python3.7、CUDA11.0、Pytorch1.7.1でTacotron2を実行しようとしています。
しかし、実行途中で「ValueError: operands could not be broadcast together with shapes (1,513) (0,)」が出てしまいました。
Tactron2を実行する際、公式GithubはPytorch1.0、参考サイトはPytorch1.6が利用されています。私が使っているGPUはPytorch1.7以降しか利用ができないようなのでこれを使用していますが、broadcast errorが出るのはこれが原因なのではないかと考えております。しかし、どのように修正したらいいかが全く分かりません(そもそも原因がPytorchが1.7だからということ自体があっているか分かりません......)
初心者ゆえわからないこと尽くして大変申し訳ありませんが、教えていただければ幸いです。
よろしくお願いいたします。
前提
Windows10
anaconda
Python3.6
NVIDIA GeForceRTX 3070 Ti
Cuda 11.0
Pytorch1.7
発生している問題・エラーメッセージ
tensorflow関連の警告は無視しても大丈夫みたいです(参考サイトさんはそれで動いているみたいです)
WARNING:tensorflow: The TensorFlow contrib module will not be included in TensorFlow 2.0. For more information, please see: * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md * https://github.com/tensorflow/addons * https://github.com/tensorflow/io (for I/O related ops) If you depend on functionality not listed there, please file an issue. FP16 Run: False Dynamic Loss Scaling: True Distributed Run: False cuDNN Enabled: True cuDNN Benchmark: False Traceback (most recent call last): File "train.py", line 290, in <module> args.warm_start, args.n_gpus, args.rank, args.group_name, hparams) File "train.py", line 186, in train train_loader, valset, collate_fn = prepare_dataloaders(hparams) File "train.py", line 44, in prepare_dataloaders trainset = TextMelLoader(hparams.training_files, hparams) File "C:\Users\ユーザ名\tacotron2\data_utils.py", line 26, in __init__ hparams.mel_fmax) File "C:\Users\ユーザ名\tacotron2\layers.py", line 51, in __init__ sampling_rate, filter_length, n_mel_channels, mel_fmin, mel_fmax) File "C:\Users\ユーザ名\AppData\Roaming\Python\Python36\site-packages\librosa\filters.py", line 247, in mel lower = -ramps[i] / fdiff[i] ValueError: operands could not be broadcast together with shapes (1,513) (0,) ### 試したこと CUDA10.xに下げてpytorch1.6をインストールしたりしてみましたが、UserWarning: NVIDIA GeForce RTX 3070 Ti with CUDA capability sm_86 is not compatible with the current PyTorch installation.が出てきたりしてだめでした。

0 コメント