prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  "TypedStorage is deprecated" while Training
  **Describe the bug**
  Spammy "TypedStorage is deprecated" warning on every epoch.
  
  ```
  [23:52:12] WARNING  [23:52:12] C:\omited\venv\lib\site-packages\torch\_utils.py:776: UserWarning:        warnings.py:109
                      TypedStorage is deprecated. It will be removed in the future and UntypedStorage will
                      be the only storage class. This should only matter to you if you are using storages
                      directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead
                      of tensor.storage()
                        return self.fget.__get__(instance, owner)()
  ```
  
  **To Reproduce**
  Simply train a voice.
  
  **Additional context**
  I updated to 3.6.1 today and start seeing the issue. Unfortunately I didn't know what was last good known version.
  
  I'm training a voice using CREPE F0 predictor and using PyTorch 2.0.0 in Windows 11 if that matters.
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `src/so_vits_svc_fork/logger.py`
  Content:
  ```
  1 import os
  2 import sys
  3 from logging import (
  4     DEBUG,
  5     INFO,
  6     FileHandler,
  7     StreamHandler,
  8     basicConfig,
  9     captureWarnings,
  10     getLogger,
  11 )
  12 from pathlib import Path
  13 
  14 from rich.logging import RichHandler
  15 
  16 LOGGER_INIT = False
  17 
  18 
  19 def init_logger() -> None:
  20     global LOGGER_INIT
  21     if LOGGER_INIT:
  22         return
  23 
  24     IS_TEST = "test" in Path.cwd().stem
  25     package_name = sys.modules[__name__].__package__
  26     basicConfig(
  27         level=INFO,
  28         format="%(asctime)s %(message)s",
  29         datefmt="[%X]",
  30         handlers=[
  31             StreamHandler() if is_notebook() else RichHandler(),
  32             FileHandler(f"{package_name}.log"),
  33         ],
  34     )
  35     if IS_TEST:
  36         getLogger(package_name).setLevel(DEBUG)
  37     captureWarnings(True)
  38     LOGGER_INIT = True
  39 
  40 
  41 def is_notebook():
  42     try:
  43         from IPython import get_ipython
  44 
  45         if "IPKernelApp" not in get_ipython().config:  # pragma: no cover
  46             raise ImportError("console")
  47             return False
  48         if "VSCODE_PID" in os.environ:  # pragma: no cover
  49             raise ImportError("vscode")
  50             return False
  51     except Exception:
  52         return False
  53     else:  # pragma: no cover
  54         return True
  55
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/src/so_vits_svc_fork/logger.py b/src/so_vits_svc_fork/logger.py
  --- a/src/so_vits_svc_fork/logger.py
  +++ b/src/so_vits_svc_fork/logger.py
  @@ -1,5 +1,6 @@
   import os
   import sys
  +import warnings
   from logging import (
       DEBUG,
       INFO,
  @@ -35,6 +36,9 @@
       if IS_TEST:
           getLogger(package_name).setLevel(DEBUG)
       captureWarnings(True)
  +    warnings.filterwarnings(
  +        "ignore", category=UserWarning, message="TypedStorage is deprecated"
  +    )
       LOGGER_INIT = True
  
verification_info: {"golden_diff": "diff --git a/src/so_vits_svc_fork/logger.py b/src/so_vits_svc_fork/logger.py\n--- a/src/so_vits_svc_fork/logger.py\n+++ b/src/so_vits_svc_fork/logger.py\n@@ -1,5 +1,6 @@\n import os\n import sys\n+import warnings\n from logging import (\n     DEBUG,\n     INFO,\n@@ -35,6 +36,9 @@\n     if IS_TEST:\n         getLogger(package_name).setLevel(DEBUG)\n     captureWarnings(True)\n+    warnings.filterwarnings(\n+        \"ignore\", category=UserWarning, message=\"TypedStorage is deprecated\"\n+    )\n     LOGGER_INIT = True\n", "issue": "\"TypedStorage is deprecated\" while Training\n**Describe the bug**\r\nSpammy \"TypedStorage is deprecated\" warning on every epoch.\r\n\r\n```\r\n[23:52:12] WARNING  [23:52:12] C:\\omited\\venv\\lib\\site-packages\\torch\\_utils.py:776: UserWarning:        warnings.py:109\r\n                    TypedStorage is deprecated. It will be removed in the future and UntypedStorage will\r\n                    be the only storage class. This should only matter to you if you are using storages\r\n                    directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead\r\n                    of tensor.storage()\r\n                      return self.fget.__get__(instance, owner)()\r\n```\r\n\r\n**To Reproduce**\r\nSimply train a voice.\r\n\r\n**Additional context**\r\nI updated to 3.6.1 today and start seeing the issue. Unfortunately I didn't know what was last good known version.\r\n\r\nI'm training a voice using CREPE F0 predictor and using PyTorch 2.0.0 in Windows 11 if that matters.\r\n\n", "before_files": [{"content": "import os\nimport sys\nfrom logging import (\n    DEBUG,\n    INFO,\n    FileHandler,\n    StreamHandler,\n    basicConfig,\n    captureWarnings,\n    getLogger,\n)\nfrom pathlib import Path\n\nfrom rich.logging import RichHandler\n\nLOGGER_INIT = False\n\n\ndef init_logger() -> None:\n    global LOGGER_INIT\n    if LOGGER_INIT:\n        return\n\n    IS_TEST = \"test\" in Path.cwd().stem\n    package_name = sys.modules[__name__].__package__\n    basicConfig(\n        level=INFO,\n        format=\"%(asctime)s %(message)s\",\n        datefmt=\"[%X]\",\n        handlers=[\n            StreamHandler() if is_notebook() else RichHandler(),\n            FileHandler(f\"{package_name}.log\"),\n        ],\n    )\n    if IS_TEST:\n        getLogger(package_name).setLevel(DEBUG)\n    captureWarnings(True)\n    LOGGER_INIT = True\n\n\ndef is_notebook():\n    try:\n        from IPython import get_ipython\n\n        if \"IPKernelApp\" not in get_ipython().config:  # pragma: no cover\n            raise ImportError(\"console\")\n            return False\n        if \"VSCODE_PID\" in os.environ:  # pragma: no cover\n            raise ImportError(\"vscode\")\n            return False\n    except Exception:\n        return False\n    else:  # pragma: no cover\n        return True\n", "path": "src/so_vits_svc_fork/logger.py"}], "after_files": [{"content": "import os\nimport sys\nimport warnings\nfrom logging import (\n    DEBUG,\n    INFO,\n    FileHandler,\n    StreamHandler,\n    basicConfig,\n    captureWarnings,\n    getLogger,\n)\nfrom pathlib import Path\n\nfrom rich.logging import RichHandler\n\nLOGGER_INIT = False\n\n\ndef init_logger() -> None:\n    global LOGGER_INIT\n    if LOGGER_INIT:\n        return\n\n    IS_TEST = \"test\" in Path.cwd().stem\n    package_name = sys.modules[__name__].__package__\n    basicConfig(\n        level=INFO,\n        format=\"%(asctime)s %(message)s\",\n        datefmt=\"[%X]\",\n        handlers=[\n            StreamHandler() if is_notebook() else RichHandler(),\n            FileHandler(f\"{package_name}.log\"),\n        ],\n    )\n    if IS_TEST:\n        getLogger(package_name).setLevel(DEBUG)\n    captureWarnings(True)\n    warnings.filterwarnings(\n        \"ignore\", category=UserWarning, message=\"TypedStorage is deprecated\"\n    )\n    LOGGER_INIT = True\n\n\ndef is_notebook():\n    try:\n        from IPython import get_ipython\n\n        if \"IPKernelApp\" not in get_ipython().config:  # pragma: no cover\n            raise ImportError(\"console\")\n            return False\n        if \"VSCODE_PID\" in os.environ:  # pragma: no cover\n            raise ImportError(\"vscode\")\n            return False\n    except Exception:\n        return False\n    else:  # pragma: no cover\n        return True\n", "path": "src/so_vits_svc_fork/logger.py"}]}