Skip to content

Commit

Permalink
fix: criterionIdt is not used by cut
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz committed Feb 3, 2022
1 parent 31562b9 commit 3665410
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion models/cut_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def __init__(self, opt,rank):
for nce_layer in self.nce_layers:
self.criterionNCE.append(PatchNCELoss(opt).to(self.device))

self.criterionIdt = torch.nn.L1Loss().to(self.device)
self.optimizer_G = torch.optim.Adam(self.netG.parameters(), lr=opt.lr, betas=(opt.beta1, opt.beta2))
if opt.netD_global== "none":
self.optimizer_D = torch.optim.Adam(self.netD.parameters(), lr=opt.lr, betas=(opt.beta1, opt.beta2))
Expand Down

0 comments on commit 3665410

Please sign in to comment.