|
13 | 13 | parser.add_argument('--voice', type=str, help='Selects the voice to use for generation. See options in voices/ directory (and add your own!) ' |
14 | 14 | 'Use the & character to join two voices together. Use a comma to perform inference on multiple voices.', default='random') |
15 | 15 | parser.add_argument('--preset', type=str, help='Which voice preset to use.', default='fast') |
16 | | - parser.add_argument('--use_deepspeed', type=str, help='Use deepspeed for speed bump.', default=False) |
| 16 | + parser.add_argument('--use_deepspeed', type=bool, help='Use deepspeed for speed bump.', default=False) |
17 | 17 | parser.add_argument('--kv_cache', type=bool, help='If you disable this please wait for a long a time to get the output', default=True) |
18 | 18 | parser.add_argument('--half', type=bool, help="float16(half) precision inference if True it's faster and take less vram and ram", default=True) |
19 | 19 | parser.add_argument('--output_path', type=str, help='Where to store outputs.', default='results/') |
|
25 | 25 | parser.add_argument('--cvvp_amount', type=float, help='How much the CVVP model should influence the output.' |
26 | 26 | 'Increasing this can in some cases reduce the likelihood of multiple speakers. Defaults to 0 (disabled)', default=.0) |
27 | 27 | args = parser.parse_args() |
28 | | - if torch.backends.mps.is_available(): |
29 | | - args.use_deepspeed = False |
30 | 28 | os.makedirs(args.output_path, exist_ok=True) |
31 | 29 | tts = TextToSpeech(models_dir=args.model_dir, use_deepspeed=args.use_deepspeed, kv_cache=args.kv_cache, half=args.half) |
32 | 30 |
|
|
0 commit comments