mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-05 01:10:22 +08:00
chore(format): run black on dev (#2099)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ab07a8b1bc
commit
c38088dc6e
@@ -358,9 +358,7 @@ def get_hparams(init=True):
|
||||
required=True,
|
||||
help="if caching the dataset in GPU memory, 1 or 0",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-a", "--author", type=str, default="", help="Model author"
|
||||
)
|
||||
parser.add_argument("-a", "--author", type=str, default="", help="Model author")
|
||||
|
||||
args = parser.parse_args()
|
||||
name = args.experiment_dir
|
||||
@@ -389,6 +387,7 @@ def get_hparams(init=True):
|
||||
hparams.author = args.author
|
||||
return hparams
|
||||
|
||||
|
||||
"""
|
||||
def get_hparams_from_dir(model_dir):
|
||||
config_save_path = os.path.join(model_dir, "config.json")
|
||||
@@ -435,6 +434,7 @@ def check_git_hash(model_dir):
|
||||
open(path, "w").write(cur_hash)
|
||||
"""
|
||||
|
||||
|
||||
def get_logger(model_dir, filename="train.log"):
|
||||
global logger
|
||||
logger = logging.getLogger(os.path.basename(model_dir))
|
||||
|
||||
Reference in New Issue
Block a user