Comments (6)
I also get sometimes get this error if I don't change anything and just type in a prompt and click generate:
Generating tortoise with params:
TortoiseParameters(
text='Hello, world!',
voice='random',
preset='ultra_fast',
seed=-1.0,
cvvp_amount=0.0,
split_prompt=False,
num_autoregressive_samples=16,
diffusion_iterations=30,
temperature=0.8,
length_penalty=1.0,
repetition_penalty=2.0,
top_p=0.8,
max_mel_tokens=500,
cond_free=False,
cond_free_k=2,
diffusion_temperature=1.0,
model='Default',
name='test1'
)
Ignored unknown kwarg option normalize
Ignored unknown kwarg option normalize
Ignored unknown kwarg option normalize
Ignored unknown kwarg option normalize
Generating autoregressive samples..
0%| | 0/4 [00:00<?, ?it/s]/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/transformers/generation/utils.py:823: UserWarning: MPS: no support for int64 repeats mask, casting it to int32 (Triggered internally at /Users/runner/work/_temp/anaconda/conda-bld/pytorch_1678454852765/work/aten/src/ATen/native/mps/operations/Repeat.mm:236.)
input_ids = input_ids.repeat_interleave(expand_size, dim=0)
0%| | 0/4 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction
output = await route_utils.call_process_api(
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api
result = await self.call_function(
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function
prediction = await utils.async_iteration(iterator)
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration
return await iterator.anext()
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 512, in anext
return await anyio.to_thread.run_sync(
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async
return next(iterator)
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper
yield from f(*args, **kwargs)
File "/Users/masong/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/generation_tab_tortoise.py", line 168, in gen
yield from generate_tortoise_long(
File "/Users/masong/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/gen_tortoise.py", line 200, in generate_tortoise_long
datas = generate_tortoise(
File "/Users/masong/one-click-installers-tts-6.0/tts-generation-webui/src/tortoise/gen_tortoise.py", line 111, in generate_tortoise
result, state = tts.tts_with_preset(
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/api.py", line 321, in tts_with_preset
return self.tts(text, **settings)
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/api.py", line 420, in tts
codes = autoregressive.inference_speech(auto_conditioning, text_tokens,
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/models/autoregressive.py", line 560, in inference_speech
gen = self.inference_model.generate(inputs, bos_token_id=self.start_mel_token, pad_token_id=self.stop_mel_token, eos_token_id=self.stop_mel_token,
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/transformers/generation/utils.py", line 1764, in generate
return self.sample(
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/transformers/generation/utils.py", line 2858, in sample
model_inputs = self.prepare_inputs_for_generation(input_ids, **model_kwargs)
File "/Users/masong/one-click-installers-tts-6.0/installer_files/env/lib/python3.10/site-packages/tortoise/models/autoregressive.py", line 93, in prepare_inputs_for_generation
position_ids = attention_mask.long().cumsum(-1) - 1
RuntimeError: MPS does not support cumsum op with int64 input
from tts-generation-webui.
Thanks, I'll check how to fix it. Gradio likes to break things, but I'll just have to fix them.
from tts-generation-webui.
Thanks, I'll check how to fix it. Gradio likes to break things, but I'll just have to fix them.
Ok, thank you
from tts-generation-webui.
The first error shouldn't happen with the latest patch.
As for the second error - it's because MPS really works best with the latest pytorch version. I saw people write that if you install the latest pytorch version, it will work. I need to think about how I want to improve the installer for MacOS in general, and what the consequences might be.
For now, if you wish I can tell you how to install it, but it has to be done every time after you finish updating.
from tts-generation-webui.
The first error shouldn't happen with the latest patch.
As for the second error - it's because MPS really works best with the latest pytorch version. I saw people write that if you install the latest pytorch version, it will work. I need to think about how I want to improve the installer for MacOS in general, and what the consequences might be. For now, if you wish I can tell you how to install it, but it has to be done every time after you finish updating.
I would appreciate that, sure!
from tts-generation-webui.
Related Issues (20)
- updated today, getting this on start.bat now HOT 3
- How can we change the React UI default port? HOT 3
- Not even sure what's going wrong HOT 8
- Terminal errors when clicking "Generate" HOT 2
- Mp3 option ? HOT 1
- Bark voice clone multiple audio inputs? HOT 1
- Keeping models in vram all the time HOT 9
- start_linux.sh fails at startup on first install HOT 6
- When trying a fresh install, I get these errors HOT 3
- Check if miniconda is already installed. HOT 5
- Colab installation fails: "Failed to install node_modules" HOT 8
- Can rmvpe be added to pitch collection method in RVC? HOT 4
- Bark Voice Generation error HOT 11
- WebUI does not render properly - compared to images I've seen. And tortoise fails to generate HOT 2
- Not able to generate - tried Bark, Tortoise, and MusicGen HOT 17
- Torch version mixup? HOT 6
- Where is gradio ui HOT 3
- Is it possible to use these facebook/mms-tts models inside tts-generation-webui? HOT 3
- IndexError: index 4 is out of range error when checked Multi-band Diffusion HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tts-generation-webui.