pqt commited on
Commit
16749c3
1 Parent(s): 2a42e1b

update srgan

Browse files
Files changed (1) hide show
  1. models/SRGAN/srgan.py +1 -1
models/SRGAN/srgan.py CHANGED
@@ -51,7 +51,7 @@ class GeneratorResnet(nn.Module):
51
  out = torch.add(out1, out2)
52
  out = self.upsampling(out)
53
  out = self.conv3(out)
54
- return out
55
 
56
  def inference(self, x):
57
  """
 
51
  out = torch.add(out1, out2)
52
  out = self.upsampling(out)
53
  out = self.conv3(out)
54
+ return out.clamp(0, 1)
55
 
56
  def inference(self, x):
57
  """