-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
LOG.info not printing at all? (v1.3.2) #104
Comments
Warning is the (Python) default level. can you describe more about specific path? |
According to this line it should be set to INFO though, right?
I have a batch script that I can double-click which has the following code: |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I cannot reproduce this issue. Can you please explain more about this? The getLogger change is not necessary and I am sorry but I don't understand what you are talking about. |
Example log file of running with the up-to-date code on your repository: Since it didn't log anything besides the version, here's a screenshot of what the terminal showed: Example log file with the changes I made: Additionally, a screenshot, too: So yes, the getLogger change is necessary. Edit: I should additionally mention that I'm running on Windows 11. |
There must be some other solution, though I can't think of any right now... |
What do you mean "other solution"? The solution that I provided in the pull request works. The current code you have is only getting a standard logger without any configuration, which means it had it's defaults, besides in the main file. However, that means that it also doesn't have proper formatting (or even the RichHandler) This addresses that problem. Additionally, I feel adding a launch argument to set the actual log level might be good to have, too |
python -c "import so_vits_svc_fork.train"
python -c "import so_vits_svc_fork.__main__" > python -c "import so_vits_svc_fork.train"
> python -c "import so_vits_svc_fork.__main__"
[20:17:49] INFO [20:17:49] Version: 1.3.4 I do not want to or will not merge code that does not meet these two requirements. |
Does your code meet these? |
Sorry, I meant this.
Only the first code should produce output. In other words, it is not a good idea to change the Handler etc when using it as a module. |
It is enough to start up tensorboard for me and I don't want to touch this horrible problem for a while. |
Actually, the behavior you are describing can be easily implemented by simply adding these two lines to |
It is a multi-processing problem that requires some refactoring to solve, but there is absolutely no need to make the major changes that BlueAmlet mentions. |
Understood, in that case please keep the pull request closed and I can look into making a new one that would fix those issues soon I guess for now I'll just keep |
Glad to finally get the word out. Now I can sleep peacefully. |
I gave you a Confused Face emoji, because I was confused about what you said before. Yes you are correct, there was no need to make the major changes that I proposed, simply calling init_logger from __init__.py would have been enough to get the behavior that Lordmau5 and I desired. |
I see, I misunderstood. I am very sorry. I withdraw my statement. The repository had grown too large and I had lost my mental capacity (excuse). |
@BlueAmulet Could you test with the latest code as well and see if it's a similar result to what you expected, too? |
Gonna assume this is working properly for others, too - I've not noticed any more issues myself |
Describe the bug
LOG.info calls aren't printing anything to the console
Example
LOG.info(f"====> Epoch: {epoch}, cost {durtaion} s")
To Reproduce
Running
svc train
with the specific model path should do the trickAdditional context
I can see LOG.warning calls, especially since I've added those as well, and I couldn't spot anything in regards to the log level being set to only warnings instead of info. I remember seeing info logs in the Google colab I've used though (Might've been with the code from the main repository though)
The text was updated successfully, but these errors were encountered: