Add files required for hifigan from neonbjb repo, including autoregressive.py modification #50

Open
Jarod wants to merge 1 commits from Jarod/tortoise-tts:main into main

Added files and made modifications to get hifigan working. Is required by this PR: mrq/ai-voice-cloning#455

Added files and made modifications to get hifigan working. Is required by this PR: https://git.ecker.tech/mrq/ai-voice-cloning/pulls/455
Jarod added 1 commit 2023-11-27 07:07:30 +07:00
terminator approved these changes 2023-11-28 02:16:36 +07:00
terminator left a comment

I believe it looks good. All the changes seem to be in order, and I don't see any issues.

I believe it looks good. All the changes seem to be in order, and I don't see any issues.
terminator reviewed 2023-11-30 01:20:51 +07:00
@ -0,0 +261,4 @@
return t
if not hasattr(t, 'device'):
t.device = device

this line throw an error related to:

ai-voice-cloning\modules\tortoise-tts\tortoise\api_fast.py", line 697, in tts
    auto_conditioning = migrate_to_device(auto_conditioning, self.device)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "ai-voice-cloning\modules\tortoise-tts\tortoise\api_fast.py", line 264, in migrate_to_device
    t.device = device
    ^^^^^^^^
AttributeError: 'tuple' object has no attribute 'device'

I watched your video and saw, to use hifigan needs to click in (Re)Compute Voice Latents.

Now complete tested. Works fine.

this line throw an error related to: ``` ai-voice-cloning\modules\tortoise-tts\tortoise\api_fast.py", line 697, in tts auto_conditioning = migrate_to_device(auto_conditioning, self.device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "ai-voice-cloning\modules\tortoise-tts\tortoise\api_fast.py", line 264, in migrate_to_device t.device = device ^^^^^^^^ AttributeError: 'tuple' object has no attribute 'device' ``` I watched your video and saw, to use hifigan needs to click in (Re)Compute Voice Latents. Now complete tested. Works fine.
terminator approved these changes 2023-12-01 04:39:34 +07:00

Reviewers

terminator approved these changes 2023-12-01 04:39:34 +07:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b Jarod-main main
git pull main

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff Jarod-main
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/tortoise-tts#50
There is no content yet.