Skip to content

Commit

Permalink
fix(train): suppress pytorch logs for deprecated TypedStorage (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordmau5 authored Apr 15, 2023
1 parent c9025ed commit e67ac62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/so_vits_svc_fork/logger.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
import warnings
from logging import (
DEBUG,
INFO,
Expand Down Expand Up @@ -35,6 +36,9 @@ def init_logger() -> None:
if IS_TEST:
getLogger(package_name).setLevel(DEBUG)
captureWarnings(True)
warnings.filterwarnings(
"ignore", category=UserWarning, message="TypedStorage is deprecated"
)
LOGGER_INIT = True


Expand Down

0 comments on commit e67ac62

Please sign in to comment.