Skip to content

Commit

Permalink
Merge pull request #62 from onepeachbiubiubiu/requires_grad_false
Browse files Browse the repository at this point in the history
fix net_disc gradient bug
  • Loading branch information
GaParmar authored Sep 8, 2024
2 parents 5d63339 + 296fa53 commit 463b2d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/train_cyclegan_turbo.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def main(args):
optimizer_gen.step()
lr_scheduler_gen.step()
optimizer_gen.zero_grad()
optimizer_disc.zero_grad()

"""
Identity Objective
Expand Down

0 comments on commit 463b2d3

Please sign in to comment.