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

Remove debug log in inference #233

Closed
cod3r0k opened this issue Dec 23, 2024 · 3 comments
Closed

Remove debug log in inference #233

cod3r0k opened this issue Dec 23, 2024 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@cod3r0k
Copy link

cod3r0k commented Dec 23, 2024

Describe the bug

when I use tts.tts_to_file(text, outputpath) we have not log
but when I call tts.tts(text) we have phoneme log. How can I hide it ? it dosent have verbose or similar thing

To Reproduce

when I use tts.tts_to_file(text, outputpath) we have not log
but when I call tts.tts(text) we have phoneme log. How can I hide it ? it dosent have verbose or similar thing

Expected behavior

No response

Logs

No response

Environment

- latest idiap

Additional context

No response

@cod3r0k cod3r0k added the bug Something isn't working label Dec 23, 2024
@eginhard
Copy link
Member

Could you share a concrete example? Neither of the following produces any log output for me:

from TTS.api import TTS

tts = TTS("tts_models/en/vctk/vits")

_ = tts.tts("This is a test", speaker="p226")
tts.tts_to_file("This is a test", speaker="p226")

In general, this fork uses standard Python logging, so you can adjust it as usual.

@eginhard eginhard added the question Further information is requested label Dec 23, 2024
@lostways
Copy link

@cod3r0k the library uses the python logging library https://docs.python.org/3/library/logging.html . You can use this to set what level of logging you want to see. For example:

from TTS.api import TTS
import logging

logging.basicConfig(level=logging.ERROR)

tts = TTS("tts_models/en/vctk/vits")

_ = tts.tts("This is a test", speaker="p226")
tts.tts_to_file("This is a test", speaker="p226")

This should only display error logs now.

setting it to logging.basicConfig(level=logging.DEBUG) will show all the debug logs including phonemes

@eginhard
Copy link
Member

eginhard commented Jan 7, 2025

No further response, assuming this is solved.

@eginhard eginhard closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants