jaywalnut310 / glow-tts

A Generative Flow for Text-to-Speech via Monotonic Alignment Search
MIT License
667 stars 150 forks source link

Regarding adding a Colab Notebook #48

Open sayakpaul opened 3 years ago

sayakpaul commented 3 years ago

Hi @jaywalnut310.

I took your inference_hifigan.ipynb notebook and made it fully runnable inside Google Colab (here's my Colab Gist). I think it would make it easier for people to play around with the model.

If you want I can create a PR accordingly including this notebook.

Let me know.

mdkberry commented 3 years ago

this is giving an error.

%matplotlib inline
import matplotlib.pyplot as plt
import IPython.display as ipd

import librosa
import numpy as np
import os
import glob
import json

import torch
from text import text_to_sequence, cmudict
from text.symbols import symbols
import commons
import attentions
import modules
import models
import utils

ModuleNotFoundError Traceback (most recent call last)

in () 3 import IPython.display as ipd 4 ----> 5 import librosa 6 import numpy as np 7 import os 5 frames /usr/local/lib/python3.7/dist-packages/librosa/util/decorators.py in () 7 from decorator import decorator 8 import six ----> 9 from numba.decorators import jit as optional_jit 10 11 __all__ = ['moved', 'deprecated', 'optional_jit'] ModuleNotFoundError: No module named 'numba.decorators'
mdkberry commented 3 years ago

I solved the above by running

!pip install numba==0.48

before the "import limbrosa" code and then restarting runtime and then running the line again. after that it continued to the next error...

mdkberry commented 3 years ago

ModuleNotFoundError Traceback (most recent call last)

in () 10 11 import torch ---> 12 from text import text_to_sequence, cmudict 13 from text.symbols import symbols 14 import commons ModuleNotFoundError: No module named 'text'