summaryrefslogtreecommitdiff
path: root/models/networks.py
diff options
context:
space:
mode:
authorLambdaWill <574819595@qq.com>2017-09-22 14:43:25 +0800
committerGitHub <noreply@github.com>2017-09-22 14:43:25 +0800
commit6360df153e46d33b27c46f16c78d732ce2f475cf (patch)
tree9a22db113664ad338059840f415cc754abff54a5 /models/networks.py
parent4062012515f4bcc2ee90ccef80d9492ebb64441f (diff)
change the order of concanated channels
To be consistent with Cyclegan(Torch), the latter half channels should receive the data from the skip connections.
Diffstat (limited to 'models/networks.py')
-rw-r--r--models/networks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/networks.py b/models/networks.py
index f48e7fe..0410ca3 100644
--- a/models/networks.py
+++ b/models/networks.py
@@ -311,7 +311,7 @@ class UnetSkipConnectionBlock(nn.Module):
if self.outermost:
return self.model(x)
else:
- return torch.cat([self.model(x), x], 1)
+ return torch.cat([x, self.model(x)], 1)
# Defines the PatchGAN discriminator with the specified arguments.