neonbjb / tortoise-tts

A multi-voice TTS system trained with an emphasis on quality
Apache License 2.0
12.98k stars 1.79k forks source link

Running read.py in Colab? #195

Closed cboRD181 closed 1 year ago

cboRD181 commented 1 year ago

Has anyone sorted out how to get this working?

I added a cell with "!python read.py --textfile /tortoise-tts/txt.txt --voice custom --preset fast"

It appears to generate the first sentence but upon completion, rather than continuing to the next segment, gives an error:

Attempt to free invalid pointer 0x7fae07039d98

neonbjb commented 1 year ago

I think this can happen if you run the other cells before running read.py (because colab doesn't like resource conflicts). Try running just that cell and nothing else?

On Wed, Nov 16, 2022 at 9:27 AM cboRD181 @.***> wrote:

Has anyone sorted out how to get this working?

I added a cell with "!python read.py --textfile /tortoise-tts/txt.txt --voice custom"

It appears to generate the first sentence, but upon completion gives an error:

Attempt to free invalid pointer 0x7fae07039d98

— Reply to this email directly, view it on GitHub https://github.com/neonbjb/tortoise-tts/issues/195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGLMOVM2YHJPMCX4KOUEALWIUKR3ANCNFSM6AAAAAASCPK5Z4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

James Betker

cboRD181 commented 1 year ago

Thanks for the quick reply. I had not been running the other cells, aside from cloning the repo and importing dependencies, but was still getting the error.

But I realized I had bracketed text for prompt engineering in my .txt file, and read that could cause issues elsewhere. After removing brackets, it seems to be working! :) Thanks for this amazing model.

bpbeyt commented 1 year ago

I have same issue happening on read.py using the larger gpu on colab.
loaded the first 2 cells for imports and git

using the ridinghood.txt script, which worked last week.

!python3 /content/tortoise-tts/tortoise/read.py --textfile /content/tortoise-tts/tortoise/data/riding_hood.txt --voice random

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x7f82dc615d98

all other functions are working.

looking for a jupyter notebook outside of google that I can troubleshoot this, unless any other solutions... thx

neonbjb commented 1 year ago

Can you also confirm that you are pulling the correct version of transformers? https://github.com/neonbjb/tortoise-tts/commit/6587d1934ee20753631980836f4ab1d51e9a5fab

On Thu, Nov 17, 2022, 2:37 PM Brennan Beyt @.***> wrote:

I have same issue happening on read.py using the larger gpu on colab. loaded the first 2 cells for imports and git

using the ridinghood.txt script, which worked last week.

!python3 /content/tortoise-tts/tortoise/read.py --textfile /content/tortoise-tts/tortoise/data/riding_hood.txt --voice random

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x7f82dc615d98

all other functions are working.

looking for a jupyter notebook outside of google that I can troubleshoot this, unless any other solutions... thx

— Reply to this email directly, view it on GitHub https://github.com/neonbjb/tortoise-tts/issues/195#issuecomment-1319298551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGLMOWQP6UI4MNFQ67KTC3WI2XSZANCNFSM6AAAAAASCPK5Z4 . You are receiving this because you commented.Message ID: @.***>

bpbeyt commented 1 year ago

yup, I see now. !!!!!!....thanks...!!!!! pinned to transformers==4.19 fixed issue.