Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed May 4, 2024
1 parent 58c2d85 commit 52e64c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions train_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,16 @@ def train(self, args):
trainable_params = network.prepare_optimizer_params(args.text_encoder_lr, args.unet_lr)
lr_descriptions = None

# if len(trainable_params) == 0:
# accelerator.print("no trainable parameters found / 学習可能なパラメータが見つかりませんでした")
# for params in trainable_params:
# for k, v in params.items():
# if type(v) == float:
# pass
# else:
# v = len(v)
# accelerator.print(f"trainable_params: {k} = {v}")

optimizer_name, optimizer_args, optimizer = train_util.get_optimizer(args, trainable_params)

# dataloaderを準備する
Expand Down

0 comments on commit 52e64c6

Please sign in to comment.