feamod fix

This commit is contained in:
James Betker 2020-08-30 08:08:49 -06:00
parent a56e906f9c
commit b2091cb698

View File

@ -74,7 +74,7 @@ class FeatureModel(BaseModel):
self.optimizer_G.zero_grad() self.optimizer_G.zero_grad()
# grey out the LR image but keep 3 channels. # grey out the LR image but keep 3 channels.
lr = torch.mean(self.var_H, dim=1, keepdim=True) lr = torch.mean(self.real_H, dim=1, keepdim=True)
lr = lr.repeat(1, 3, 1, 1) lr = lr.repeat(1, 3, 1, 1)
self.fake_H = self.fea_train(lr, interpolate_factor=1) self.fake_H = self.fea_train(lr, interpolate_factor=1)