Skip to content

Commit

Permalink
add train_network
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbds committed Oct 20, 2023
1 parent fe6f189 commit 6539363
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ venv
build
.vscode
wandb
.vs
2 changes: 2 additions & 0 deletions train_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,8 @@ def remove_model(old_ckpt_name):
loss = scale_v_prediction_loss_like_noise_prediction(loss, timesteps, noise_scheduler)
if args.v_pred_like_loss:
loss = add_v_prediction_like_loss(loss, timesteps, noise_scheduler, args.v_pred_like_loss)
if args.debiased_estimation_loss:
loss = apply_debiased_estimation(loss, timesteps, noise_scheduler)

loss = loss.mean() # 平均なのでbatch_sizeで割る必要なし

Expand Down

0 comments on commit 6539363

Please sign in to comment.