Skip to content
Snippets Groups Projects
Commit 7fd7c7b2 authored by Tamino Huxohl's avatar Tamino Huxohl
Browse files

fix bug in initialization of discriminator

parent 325fa268
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ class Discriminator(nn.Module):
self.conv = nn.Sequential(*conv_layers)
# input is halved by each convolutional layer
self.fc_input_size = map(lambda x: x // 2 ** (len(conv_features)), input_size)
self.fc_input_size = map(lambda x: x // 2 ** (len(conv_features)), self.input_size)
self.fc_input_size = reduce(lambda x, y: x * y, self.fc_input_size)
fc_layers = []
......@@ -249,6 +249,7 @@ if __name__ == "__main__":
help="batch size of inputs for a test computation",
)
args = parser.parse_args()
args.input_size = tuple(args.input_size)
if args.type == "class":
net = Discriminator(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment