152334H / tortoise-tts-fast

Fast TorToiSe inference (5x or your money back!)
GNU Affero General Public License v3.0
771 stars 179 forks source link

Is longform conversion from a text file working properly via read.py? (--kv_cache unrecognized) #11

Closed kylereinfeld closed 1 year ago

kylereinfeld commented 1 year ago

I'm getting an "unrecognized arguments" error when I try to run read.py with --kv_cache.

pepinu commented 1 year ago

add on the line 26 in read.py a line like

parser.add_argument('--kv-cache', type=bool, help='Whether or not to use kv_cache. Defaults to true.', default=True)

then this line should be modified to

tts = TextToSpeech(models_dir=args.model_dir, kv_cache=args.kv_cache)

and it should work, if it does feel free to do a PR for that

152334H commented 1 year ago

Ah, I haven't done any changes in any of the CLI code files apart from do_tts.py, apologies.

152334H commented 1 year ago

addressed here. Please reopen this issue if something was broken by the commit.