Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference is throwing No module named 'tools' #566

Closed
Tareqox opened this issue Sep 18, 2024 · 1 comment
Closed

Inference is throwing No module named 'tools' #566

Tareqox opened this issue Sep 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Tareqox
Copy link

Tareqox commented Sep 18, 2024

Cloud or Self Hosted

Cloud

Steps to reproduce

after cd fish speech I am trying to run python tools/vqgan/inference.py \ -i "paimon.wav" \ --checkpoint-path "checkpoints/fish-speech-1.4/firefly-gan-vq-fsq-8x1024-21hz-generator.pth"

and I get following error:

`(fish-speech) [ec2-user@ip-172-31-2-8 fish-speech]$ python tools/vqgan/inference.py \

-i "paimon.wav" \
--checkpoint-path "checkpoints/fish-speech-1.4/firefly-gan-vq-fsq-8x1024-21hz-generator.pth"

Traceback (most recent call last):
File "/home/ec2-user/fish-speech/tools/vqgan/inference.py", line 14, in
from tools.file import AUDIO_EXTENSIONS
ModuleNotFoundError: No module named 'tools'`

  1. how to solve this?
  2. Where should the .wav file be located? and must it be a wav or can it be also other file suffix?

✔️ Expected Behavior

I want to do a inference with a voice to clone

❌ Actual Behavior

Error as seen above

@Tareqox Tareqox added the bug Something isn't working label Sep 18, 2024
@Tareqox
Copy link
Author

Tareqox commented Sep 18, 2024

python -m tools.vqgan.inference
-i "paimon.wav"
--checkpoint-path "checkpoints/fish-speech-1.4/firefly-gan-vq-fsq-8x1024-21hz-generator.pth"
solved it.

@Tareqox Tareqox closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant