CorentinJ / Real-Time-Voice-Cloning

Clone a voice in 5 seconds to generate arbitrary speech in real-time
Other
52.05k stars 8.71k forks source link

I can't make sense of this error... can somebody please help me #1115

Closed ikesaber closed 1 year ago

ikesaber commented 1 year ago

I made it to step 5 of installation without problems, and even received "all test passed" when running python demo_cli.py,

However, when i get to I get to launching the toolbox, python demo_toolbox.py -d <datasets_root> (where datasets_root points to train-clean-100 downloaded per step 4), I receive this error:

Traceback (most recent call last):
  File "/media/user/drive2/Documents/Real-Time-Voice-Cloning/demo_toolbox.py", line 5, in <module>
    from toolbox import Toolbox
  File "/media/user/drive2/Documents/Real-Time-Voice-Cloning/toolbox/__init__.py", line 11, in <module>
    from toolbox.ui import UI
  File "/media/user/drive2/Documents/Real-Time-Voice-Cloning/toolbox/ui.py", line 11, in <module>
    import umap
  File "/home/user/anaconda3/lib/python3.9/site-packages/umap/__init__.py", line 2, in <module>
    from .umap_ import UMAP
  File "/home/user/anaconda3/lib/python3.9/site-packages/umap/umap_.py", line 47, in <module>
    from pynndescent import NNDescent
  File "/home/user/anaconda3/lib/python3.9/site-packages/pynndescent/__init__.py", line 3, in <module>
    from .pynndescent_ import NNDescent, PyNNDescentTransformer
  File "/home/user/anaconda3/lib/python3.9/site-packages/pynndescent/pynndescent_.py", line 16, in <module>
    import pynndescent.sparse as sparse
  File "/home/user/anaconda3/lib/python3.9/site-packages/pynndescent/sparse.py", line 229, in <module>
    def sparse_mul(ind1, data1, ind2, data2):
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/decorators.py", line 219, in wrapper
    disp.compile(sig)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/dispatcher.py", line 965, in compile
    cres = self._compiler.compile(args, return_type)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/dispatcher.py", line 129, in compile
    raise retval
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/dispatcher.py", line 139, in _compile_cached
    retval = self._compile_core(args, return_type)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/dispatcher.py", line 152, in _compile_core
    cres = compiler.compile_extra(self.targetdescr.typing_context,
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler.py", line 693, in compile_extra
    return pipeline.compile_extra(func)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler.py", line 429, in compile_extra
    return self._compile_bytecode()
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler.py", line 497, in _compile_bytecode
    return self._compile_core()
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler.py", line 476, in _compile_core
    raise e
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler.py", line 463, in _compile_core
    pm.run(self.state)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler_machinery.py", line 353, in run
    raise patched_exception
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler_machinery.py", line 341, in run
    self._runPass(idx, pass_inst, state)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
    return func(*args, **kwargs)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler_machinery.py", line 296, in _runPass
    mutated |= check(pss.run_pass, internal_state)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/compiler_machinery.py", line 269, in check
    mangled = func(compiler_state)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/typed_passes.py", line 105, in run_pass
    typemap, return_type, calltypes, errs = type_inference_stage(
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/typed_passes.py", line 83, in type_inference_stage
    errs = infer.propagate(raise_errors=raise_errors)
  File "/home/user/anaconda3/lib/python3.9/site-packages/numba/core/typeinfer.py", line 1086, in propagate
    raise errors[0]
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
- Resolution failure for literal arguments:
No implementation of function Function(<function impl_append at 0x7f87bea19670>) found for signature:

 >>> impl_append(ListType[int32], int32)

There are 2 candidate implementations:
   - Of which 2 did not match due to:
   Overload in function 'impl_append': File: numba/typed/listobject.py: Line 592.
     With argument(s): '(ListType[int32], int32)':
    Rejected as the implementation raised a specific error:
      TypingError: Failed in nopython mode pipeline (step: nopython frontend)
    Untyped global name 'ListStatus': Cannot determine Numba type of <class 'shibokensupport.enum_310.EnumMeta'>

    File "../../../../../home/user/anaconda3/lib/python3.9/site-packages/numba/typed/listobject.py", line 602:
        def impl(l, item):
            <source elided>
            status = _list_append(l, casteditem)
            if status == ListStatus.LIST_OK:
            ^

  raised from /home/user/anaconda3/lib/python3.9/site-packages/numba/core/typeinfer.py:1480

- Resolution failure for non-literal arguments:
None

During: resolving callee type: BoundFunction((<class 'numba.core.types.containers.ListType'>, 'append') for ListType[int32])
During: typing of call at /home/user/anaconda3/lib/python3.9/site-packages/pynndescent/sparse.py (244)

File "../../../../../home/user/anaconda3/lib/python3.9/site-packages/pynndescent/sparse.py", line 244:
def sparse_mul(ind1, data1, ind2, data2):
    <source elided>
            if val != 0:
                result_ind.append(j1)
                ^       

Can somebody please help me make sense of this issue? Did I go wrong somewhere in the installation?