From 5747c20a0681f7686cbabe2eb98f65cfd7e6530b Mon Sep 17 00:00:00 2001 From: sdbds <865105819@qq.com> Date: Wed, 25 Sep 2024 19:18:35 +0800 Subject: [PATCH] update --- library/train_util.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/library/train_util.py b/library/train_util.py index fa8800e8a..c68eda654 100644 --- a/library/train_util.py +++ b/library/train_util.py @@ -3328,19 +3328,19 @@ def int_or_float(value): help='additional arguments for optimizer (like "weight_decay=0.01 betas=0.9,0.999 ...") / オプティマイザの追加引数(例: "weight_decay=0.01 betas=0.9,0.999 ...")', ) - # parser.add_argument( - # "--optimizer_schedulefree_wrapper", - # action="store_true", - # help="use schedulefree_wrapper any optimizer / 任意のオプティマイザにschedulefree_wrapperを使用", - # ) + parser.add_argument( + "--optimizer_schedulefree_wrapper", + action="store_true", + help="use schedulefree_wrapper any optimizer / 任意のオプティマイザにschedulefree_wrapperを使用", + ) - # parser.add_argument( - # "--schedulefree_wrapper_args", - # type=str, - # default=None, - # nargs="*", - # help='additional arguments for schedulefree_wrapper (like "momentum=0.9 weight_decay_at_y=0.1 ...") / オプティマイザの追加引数(例: "momentum=0.9 weight_decay_at_y=0.1 ...")', - # ) + parser.add_argument( + "--schedulefree_wrapper_args", + type=str, + default=None, + nargs="*", + help='additional arguments for schedulefree_wrapper (like "momentum=0.9 weight_decay_at_y=0.1 ...") / オプティマイザの追加引数(例: "momentum=0.9 weight_decay_at_y=0.1 ...")', + ) parser.add_argument("--lr_scheduler_type", type=str, default="", help="custom scheduler module / 使用するスケジューラ") parser.add_argument(