NVIDIA / mellotron

Mellotron: a multispeaker voice synthesis model based on Tacotron 2 GST that can make a voice emote and sing without emotive or singing training data
BSD 3-Clause "New" or "Revised" License
853 stars 187 forks source link

TypeError: create_target_machine() got an unexpected keyword argument 'jitdebug' #80

Closed zxwwxz001 closed 3 years ago

zxwwxz001 commented 3 years ago

Get type error when using "inference.ipynb" to inference at Jupyter notebook: TypeError: create_target_machine() got an unexpected keyword argument 'jitdebug'

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-15-20c49233a480> in <module>
     12 from scipy.io.wavfile import write
     13 import pandas as pd
---> 14 import librosa
     15 import torch
     16 

~/.local/lib/python3.6/site-packages/librosa/__init__.py in <module>
     10 # And all the librosa sub-modules
     11 from . import cache
---> 12 from . import core
     13 from . import beat
     14 from . import decompose

~/.local/lib/python3.6/site-packages/librosa/core/__init__.py in <module>
    101 
    102 from .time_frequency import *  # pylint: disable=wildcard-import
--> 103 from .audio import *  # pylint: disable=wildcard-import
    104 from .spectrum import *  # pylint: disable=wildcard-import
    105 from .pitch import *  # pylint: disable=wildcard-import

~/.local/lib/python3.6/site-packages/librosa/core/audio.py in <module>
     10 import scipy.signal
     11 import scipy.fftpack as fft
---> 12 import resampy
     13 
     14 from .time_frequency import frames_to_samples, time_to_samples

~/.local/lib/python3.6/site-packages/resampy/__init__.py in <module>
      5 from .version import version as __version__
      6 from . import filters
----> 7 from .core import *

~/.local/lib/python3.6/site-packages/resampy/core.py in <module>
      7 from .filters import get_filter
      8 
----> 9 from .interpn import resample_f
     10 
     11 __all__ = ['resample']

~/.local/lib/python3.6/site-packages/resampy/interpn.py in <module>
      5 
      6 
----> 7 @numba.jit(nopython=True, nogil=True)
      8 def resample_f(x, y, sample_ratio, interp_win, interp_delta, num_table):
      9 

~/.local/lib/python3.6/site-packages/numba/decorators.py in wrapper(func)
    165         # A function is passed
    166         pyfunc = signature_or_function
--> 167         sigs = None
    168 
    169     dispatcher_args = {}

~/.local/lib/python3.6/site-packages/numba/dispatcher.py in __init__(self, py_func, locals, targetoptions, impl_kind)
    464         return dict((sig, self.inspect_asm(sig)) for sig in self.signatures)
    465 
--> 466     def inspect_types(self, file=None, signature=None,
    467                       pretty=False, style='default', **kwargs):
    468         """Print/return Numba intermediate representation (IR)-annotated code.

~/.local/lib/python3.6/site-packages/numba/targets/registry.py in target_context(self)
     52     @property
     53     def typing_context(self):
---> 54         """
     55         The typing context for CPU targets.
     56         """

~/.local/lib/python3.6/site-packages/numba/utils.py in __get__(self, instance, type)
    281 def shutting_down(globals=globals):
    282     """
--> 283     Whether the interpreter is currently shutting down.
    284     For use in finalizers, __del__ methods, and similar; it is advised
    285     to early bind this function rather than look it up when calling it,

~/.local/lib/python3.6/site-packages/numba/targets/registry.py in _toplevel_target_context(self)
     36     @utils.cached_property
     37     def _toplevel_typing_context(self):
---> 38         # Lazily-initialized top-level typing context, for all threads
     39         return typing.Context()
     40 

~/.local/lib/python3.6/site-packages/numba/targets/base.py in __init__(self, typing_context)
    238         self.typing_context = typing_context
    239 
--> 240         # A mapping of installed registries to their loaders
    241         self._registries = {}
    242         # Declarations loaded from registries and other sources

~/.local/lib/python3.6/site-packages/numba/targets/cpu.py in init(self)
     40     Changes BaseContext calling convention
     41     """
---> 42     allow_dynamic_globals = True
     43 
     44     # Overrides

~/.local/lib/python3.6/site-packages/numba/targets/codegen.py in __init__(self, module_name)
    521                 sym = gv.name[len(prefix):]
    522                 # Avoid remapping to existing GV
--> 523                 if engine.is_symbol_defined(gv.name):
    524                     continue
    525                 # Allocate a memory space for the pointer

~/.local/lib/python3.6/site-packages/numba/targets/codegen.py in _init(self, llvm_module)
    530 
    531     def scan_defined_symbols(self, module):
--> 532         """
    533         Scan and track all defined symbols.
    534         """

TypeError: create_target_machine() got an unexpected keyword argument 'jitdebug'

librosa-0.6.0, llvmlite-0.31.0, numba-0.48.0 are installed. Please help to solve it.