Spaces:
Running
Running
update srgan
Browse files- 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 |
"""
|