Skip to content

TextToSpeech to utilize passed device arg#249

Open
laszukdawid wants to merge 3 commits into
neonbjb:mainfrom
laszukdawid:tts-use-passed-device
Open

TextToSpeech to utilize passed device arg#249
laszukdawid wants to merge 3 commits into
neonbjb:mainfrom
laszukdawid:tts-use-passed-device

Conversation

@laszukdawid

Copy link
Copy Markdown

Started playing with the code and noticed that device isn't used in tortois.api.TextToSpeech.

Please let me know if that was intentional and there are some things to look for.

Comment thread tortoise/api.py Outdated
self.enable_redaction = enable_redaction
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
if device is None:
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thanks for the PR and sorry for the late review. Given how poorly this program performs on CPU, can you please print out a warning here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, late review? Guess you didn't expect an update from me.

What do you think about the change?

p0p4k added a commit to p0p4k/tortoise-tts that referenced this pull request Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants