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

Torch version mixup? #269

Closed
tilllt opened this issue Jan 29, 2024 · 6 comments
Closed

Torch version mixup? #269

tilllt opened this issue Jan 29, 2024 · 6 comments
Labels
bug Something isn't working docker installation installation related problems

Comments

@tilllt
Copy link

tilllt commented Jan 29, 2024

Hey,

i am trying to get tts-generation-webui up and running, preferably as a docker container, but a lot of things dont seem to work. In my research there seem to be a version mixup in what Torch / PyTorch Version some of the tools expect (2.1.0) and what version is in fact installed (2.0.0) by default.

am i doing something wrong or is this project a little "broken" at the moment?

Cheers

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 29, 2024 via email

@tilllt
Copy link
Author

tilllt commented Feb 14, 2024

Hey,

i dont mind if anything complains ;) but unfortunately the entire musicgen / audiogen part is not working at all, in my docker install. TortoiseTTS is not working as well, i am unable to install the Bark Voice Cloning in Docker etc.

tts-generation-webui  | Traceback (most recent call last):
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction
tts-generation-webui  |     output = await route_utils.call_process_api(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api
tts-generation-webui  |     output = await app.get_blocks().process_api(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api
tts-generation-webui  |     result = await self.call_function(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1185, in call_function
tts-generation-webui  |     prediction = await anyio.to_thread.run_sync(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
tts-generation-webui  |     return await get_asynclib().run_sync_in_worker_thread(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
tts-generation-webui  |     return await future
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
tts-generation-webui  |     result = context.run(func, *args)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/utils.py", line 661, in wrapper
tts-generation-webui  |     response = f(*args, **kwargs)
tts-generation-webui  |   File "/app/tts-generation-webui/src/musicgen/musicgen_tab.py", line 148, in generate
tts-generation-webui  |     MODEL = load_model(model)
tts-generation-webui  |   File "/app/tts-generation-webui/src/musicgen/musicgen_tab.py", line 127, in load_model
tts-generation-webui  |     return MusicGen.get_pretrained(version)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/audiocraft/models/musicgen.py", line 91, in get_pretrained
tts-generation-webui  |     return MusicGen(name, compression_model, lm)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/audiocraft/models/musicgen.py", line 52, in __init__
tts-generation-webui  |     super().__init__(name, compression_model, lm, max_duration)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/audiocraft/models/genmodel.py", line 55, in __init__
tts-generation-webui  |     self.compression_model = get_wrapped_compression_model(self.compression_model, self.cfg)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/audiocraft/models/builders.py", line 254, in get_wrapped_compression_model
tts-generation-webui  |     if cfg.interleave_stereo_codebooks.use:
tts-generation-webui  | AttributeError: 'NoneType' object has no attribute 'use'

@rsxdalv
Copy link
Owner

rsxdalv commented Feb 14, 2024 via email

@rsxdalv
Copy link
Owner

rsxdalv commented Feb 14, 2024 via email

@rsxdalv rsxdalv added installation installation related problems bug Something isn't working docker labels Feb 20, 2024
@rsxdalv
Copy link
Owner

rsxdalv commented Feb 21, 2024

Hey,

i dont mind if anything complains ;) but unfortunately the entire musicgen / audiogen part is not working at all, in my docker install. TortoiseTTS is not working as well, i am unable to install the Bark Voice Cloning in Docker etc.

tts-generation-webui  | Traceback (most recent call last):
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction
tts-generation-webui  |     output = await route_utils.call_process_api(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api
tts-generation-webui  |     output = await app.get_blocks().process_api(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api
tts-generation-webui  |     result = await self.call_function(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1185, in call_function
tts-generation-webui  |     prediction = await anyio.to_thread.run_sync(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
tts-generation-webui  |     return await get_asynclib().run_sync_in_worker_thread(
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
tts-generation-webui  |     return await future
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
tts-generation-webui  |     result = context.run(func, *args)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/gradio/utils.py", line 661, in wrapper
tts-generation-webui  |     response = f(*args, **kwargs)
tts-generation-webui  |   File "/app/tts-generation-webui/src/musicgen/musicgen_tab.py", line 148, in generate
tts-generation-webui  |     MODEL = load_model(model)
tts-generation-webui  |   File "/app/tts-generation-webui/src/musicgen/musicgen_tab.py", line 127, in load_model
tts-generation-webui  |     return MusicGen.get_pretrained(version)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/audiocraft/models/musicgen.py", line 91, in get_pretrained
tts-generation-webui  |     return MusicGen(name, compression_model, lm)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/audiocraft/models/musicgen.py", line 52, in __init__
tts-generation-webui  |     super().__init__(name, compression_model, lm, max_duration)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/audiocraft/models/genmodel.py", line 55, in __init__
tts-generation-webui  |     self.compression_model = get_wrapped_compression_model(self.compression_model, self.cfg)
tts-generation-webui  |   File "/venv/lib/python3.10/site-packages/audiocraft/models/builders.py", line 254, in get_wrapped_compression_model
tts-generation-webui  |     if cfg.interleave_stereo_codebooks.use:
tts-generation-webui  | AttributeError: 'NoneType' object has no attribute 'use'

This issue has been resolved with the new docker image. Also I fixed the build process so the ghcr.io/rsxdalv/tts-generation-webui:main images are now up to date.

@rsxdalv
Copy link
Owner

rsxdalv commented Feb 28, 2024

Ok, I believe the issue should be resolved. If there's something that's not resolved or some concern, feel free to reopen the issue or creating an additional one.

@rsxdalv rsxdalv closed this as completed Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docker installation installation related problems
Projects
None yet
Development

No branches or pull requests

2 participants