{"action":"created","issue":{"url":"https://api.github.com/repos/bstriner/keras-adversarial/issues/8","repository_url":"https://api.github.com/repos/bstriner/keras-adversarial","labels_url":"https://api.github.com/repos/bstriner/keras-adversarial/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/bstriner/keras-adversarial/issues/8/comments","events_url":"https://api.github.com/repos/bstriner/keras-adversarial/issues/8/events","html_url":"https://github.com/bstriner/keras-adversarial/issues/8","id":210515630,"number":8,"title":"Variable batchnormalization_1_running_mean/biased already exists, disallowed.","user":{"login":"manuelepalmeri","id":7695615,"avatar_url":"https://avatars3.githubusercontent.com/u/7695615?v=4","gravatar_id":"","url":"https://api.github.com/users/manuelepalmeri","html_url":"https://github.com/manuelepalmeri","followers_url":"https://api.github.com/users/manuelepalmeri/followers","following_url":"https://api.github.com/users/manuelepalmeri/following{/other_user}","gists_url":"https://api.github.com/users/manuelepalmeri/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelepalmeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelepalmeri/subscriptions","organizations_url":"https://api.github.com/users/manuelepalmeri/orgs","repos_url":"https://api.github.com/users/manuelepalmeri/repos","events_url":"https://api.github.com/users/manuelepalmeri/events{/privacy}","received_events_url":"https://api.github.com/users/manuelepalmeri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-27T15:25:01Z","updated_at":"2018-03-18T14:49:24Z","closed_at":null,"author_association":"NONE","body":"if I try to exec \"example_gan.py\" I have the following error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Users/manuelepalmeri/Downloads/keras-adversarial-master/example_gan.py\", line 142, in <module>\r\n    main()\r\n  File \"/Users/manuelepalmeri/Downloads/keras-adversarial-master/example_gan.py\", line 138, in main\r\n    latent_dim=latent_dim)\r\n  File \"/Users/manuelepalmeri/Downloads/keras-adversarial-master/example_gan.py\", line 82, in example_gan\r\n    gan = simple_gan(generator, discriminator, normal_latent_sampling((latent_dim,)))\r\n  File \"/Users/manuelepalmeri/Downloads/keras-adversarial-master/keras_adversarial/adversarial_utils.py\", line 38, in simple_gan\r\n    gan = build_gan(generator, discriminator)\r\n  File \"/Users/manuelepalmeri/Downloads/keras-adversarial-master/keras_adversarial/adversarial_utils.py\", line 17, in build_gan\r\n    yfake = Activation(\"linear\", name=\"yfake\")(discriminator(generator(generator.inputs)))\r\n  File \"/Library/Python/2.7/site-packages/keras/engine/topology.py\", line 517, in __call__\r\n    self.add_inbound_node(inbound_layers, node_indices, tensor_indices)\r\n  File \"/Library/Python/2.7/site-packages/keras/engine/topology.py\", line 571, in add_inbound_node\r\n    Node.create_node(self, inbound_layers, node_indices, tensor_indices)\r\n  File \"/Library/Python/2.7/site-packages/keras/engine/topology.py\", line 155, in create_node\r\n    output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))\r\n  File \"/Library/Python/2.7/site-packages/keras/models.py\", line 378, in call\r\n    return self.model.call(x, mask)\r\n  File \"/Library/Python/2.7/site-packages/keras/engine/topology.py\", line 2075, in call\r\n    output_tensors, output_masks, output_shapes = self.run_internal_graph(inputs, masks)\r\n  File \"/Library/Python/2.7/site-packages/keras/engine/topology.py\", line 2217, in run_internal_graph\r\n    output_tensors = to_list(layer.call(computed_tensor, computed_mask))\r\n  File \"/Library/Python/2.7/site-packages/keras/layers/normalization.py\", line 128, in call\r\n    self.add_updates([K.moving_average_update(self.running_mean, mean, self.momentum),\r\n  File \"/Library/Python/2.7/site-packages/keras/backend/tensorflow_backend.py\", line 364, in moving_average_update\r\n    variable, value, momentum)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/training/moving_averages.py\", line 70, in assign_moving_average\r\n    update_delta = _zero_debias(variable, value, decay)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/training/moving_averages.py\", line 177, in _zero_debias\r\n    trainable=False)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/ops/variable_scope.py\", line 1024, in get_variable\r\n    custom_getter=custom_getter)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/ops/variable_scope.py\", line 850, in get_variable\r\n    custom_getter=custom_getter)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/ops/variable_scope.py\", line 346, in get_variable\r\n    validate_shape=validate_shape)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/ops/variable_scope.py\", line 331, in _true_getter\r\n    caching_device=caching_device, validate_shape=validate_shape)\r\n  File \"/Library/Python/2.7/site-packages/tensorflow/python/ops/variable_scope.py\", line 632, in _get_single_variable\r\n    name, \"\".join(traceback.format_list(tb))))\r\nValueError: Variable batchnormalization_1_running_mean/biased already exists, disallowed. Did you mean to set reuse=True in VarScope? Originally defined at:\r\n\r\n  File \"/Library/Python/2.7/site-packages/keras/backend/tensorflow_backend.py\", line 364, in moving_average_update\r\n    variable, value, momentum)\r\n  File \"/Library/Python/2.7/site-packages/keras/layers/normalization.py\", line 128, in call\r\n    self.add_updates([K.moving_average_update(self.running_mean, mean, self.momentum),\r\n  File \"/Library/Python/2.7/site-packages/keras/engine/topology.py\", line 155, in create_node\r\n    output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))\r\n```\r\n\r\n\r\ncan someone help me?"},"comment":{"url":"https://api.github.com/repos/bstriner/keras-adversarial/issues/comments/374005185","html_url":"https://github.com/bstriner/keras-adversarial/issues/8#issuecomment-374005185","issue_url":"https://api.github.com/repos/bstriner/keras-adversarial/issues/8","id":374005185,"user":{"login":"zeka0","id":13997167,"avatar_url":"https://avatars3.githubusercontent.com/u/13997167?v=4","gravatar_id":"","url":"https://api.github.com/users/zeka0","html_url":"https://github.com/zeka0","followers_url":"https://api.github.com/users/zeka0/followers","following_url":"https://api.github.com/users/zeka0/following{/other_user}","gists_url":"https://api.github.com/users/zeka0/gists{/gist_id}","starred_url":"https://api.github.com/users/zeka0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeka0/subscriptions","organizations_url":"https://api.github.com/users/zeka0/orgs","repos_url":"https://api.github.com/users/zeka0/repos","events_url":"https://api.github.com/users/zeka0/events{/privacy}","received_events_url":"https://api.github.com/users/zeka0/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T14:49:24Z","updated_at":"2018-03-18T14:49:24Z","author_association":"NONE","body":"I encountered the same problem today in tensorflow 1.2 and keras newest version.\r\nBut in tensorflow 1.6 it works as intended."}}
{"actor":{"display_login":"zeka0"}}