Get rid of safety valve (probably being encountered in val)

This commit is contained in:
James Betker 2020-07-26 22:51:59 -06:00
parent 0892d5fe99
commit ebb199e884

View File

@ -235,7 +235,6 @@ class SRGANModel(BaseModel):
else:
# If not provided, use provided LQ for anyplace where the GAN would have been used.
self.gan_img = self.var_L
self.gan_lq_img_use_prob = 0 # Safety valve for not goofing.
if not self.updated:
self.netG.module.update_model(self.optimizer_G, self.schedulers[0])