Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this run on x86 arch ? #7

Open
flukexp opened this issue Mar 14, 2024 · 2 comments
Open

Can this run on x86 arch ? #7

flukexp opened this issue Mar 14, 2024 · 2 comments

Comments

@flukexp
Copy link

flukexp commented Mar 14, 2024

When attempting to execute the command "python -m uvicorn app.main:app," I diligently followed each of the steps as outlined. However, to my dismay, the execution resulted in an unexpected error being thrown.

/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/transformers/utils/generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  _torch_pytree._register_pytree_node(
2024-03-14 22:08:28 [warning  ] Config item "rvc.bark_voice_map" is undefined. Setting "v2/en_speaker_6" for all RVC models
2024-03-14 22:08:28 [info     ] STARTUP CONFIG: {'rvc': {'model_dir': '/Users/flukexp/Desktop/arbius/TTS-RVC-API/models', 'bark_voice_map': {'default': 'v2/en_speaker_6'}}, 'tts': {'output_dir': '/Users/flukexp/Desktop/arbius/TTS-RVC-API/tmp'}}
2024-03-14 22:08:33 | INFO | faiss.loader | Loading faiss.
2024-03-14 22:08:34 | INFO | faiss.loader | Successfully loaded faiss.
No supported Nvidia GPU found, use MPS instead
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/uvicorn/__main__.py", line 4, in <module>
    uvicorn.main()
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/uvicorn/main.py", line 416, in main
    run(
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/uvicorn/main.py", line 587, in run
    server.run()
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 68, in serve
    config.load()
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/uvicorn/config.py", line 467, in load
    self.loaded_app = import_from_string(self.app)
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/.venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/app/main.py", line 7, in <module>
    from .routers import full, list_speakers
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/app/routers/full.py", line 3, in <module>
    from app.routers.tts import server
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/app/routers/tts.py", line 12, in <module>
    from ..rvc.misc import (
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/app/rvc/misc.py", line 25, in <module>
    config = app.rvc.config.Config()
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/app/rvc/config.py", line 40, in __init__
    self.x_pad, self.x_query, self.x_center, self.x_max = self.device_config()
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/app/rvc/config.py", line 113, in device_config
    use_fp32_config()
  File "/Users/flukexp/Desktop/arbius/TTS-RVC-API/app/rvc/config.py", line 16, in use_fp32_config
    with open(f"configs/{config_file}", "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'configs/32k.json'
@flukexp flukexp changed the title No such file or directory: 'configs/32k.json' Can this run on x86 arch ? Mar 14, 2024
@MahdeenSky
Copy link

+1 same error on a mac

@skshadan
Copy link
Owner

did you installed the tts model?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants