Skip to content

Commit

Permalink
Merge branch 'training_cosypose' of github.com:agimus-project/happypo…
Browse files Browse the repository at this point in the history
…se into training_cosypose
  • Loading branch information
ElliotMaitre committed Mar 25, 2024
2 parents 4bf9b57 + f5829a0 commit 91ee620
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ def train_epoch():
max_norm=np.inf,
norm_type=2,
)
meters_train["grad_norm"].add(
torch.as_tensor(total_grad_norm).item()
)
meters_train["grad_norm"].add(torch.as_tensor(total_grad_norm).item())

optimizer.step()
meters_time["backward"].add(time.time() - t)
Expand Down

0 comments on commit 91ee620

Please sign in to comment.