{"action":"created","issue":{"url":"https://api.github.com/repos/JonathanRaiman/tensorflow-infogan/issues/11","repository_url":"https://api.github.com/repos/JonathanRaiman/tensorflow-infogan","labels_url":"https://api.github.com/repos/JonathanRaiman/tensorflow-infogan/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/JonathanRaiman/tensorflow-infogan/issues/11/comments","events_url":"https://api.github.com/repos/JonathanRaiman/tensorflow-infogan/issues/11/events","html_url":"https://github.com/JonathanRaiman/tensorflow-infogan/issues/11","id":235016464,"number":11,"title":"ValueError: Variable discriminator/layer_0/batch_norm/discriminator_1/layer_0/batch_norm/moments/normalize/mean/ExponentialMovingAverage/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope?","user":{"login":"ArghyaPal","id":19369111,"avatar_url":"https://avatars1.githubusercontent.com/u/19369111?v=4","gravatar_id":"","url":"https://api.github.com/users/ArghyaPal","html_url":"https://github.com/ArghyaPal","followers_url":"https://api.github.com/users/ArghyaPal/followers","following_url":"https://api.github.com/users/ArghyaPal/following{/other_user}","gists_url":"https://api.github.com/users/ArghyaPal/gists{/gist_id}","starred_url":"https://api.github.com/users/ArghyaPal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArghyaPal/subscriptions","organizations_url":"https://api.github.com/users/ArghyaPal/orgs","repos_url":"https://api.github.com/users/ArghyaPal/repos","events_url":"https://api.github.com/users/ArghyaPal/events{/privacy}","received_events_url":"https://api.github.com/users/ArghyaPal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-06-10T17:37:25Z","updated_at":"2018-05-12T16:47:18Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\n I got the following error while trying:\r\n\r\n`python3 train.py --infogan --dataset /home/arghyapal/tinfogan/rendered_chairs/rendered_chairs/c7e590c0390e8d5debe67d9b32c3ddf8/renders --scale_dataset 64 64 --batch_size 128 --discriminator conv:4:2:64:lrelu,conv:4:2:128:lrelu,conv:4:2:256:lrelu,conv:4:1:256:lrelu,conv:4:1:256:lrelu,fc:1024:lrelu --generator fc:1024,fc:8x8x256,reshape:8:8:256,deconv:4:1:256,deconv:4:2:256,deconv:4:2:128,deconv:4:2:64,deconv:4:1:1:sigmoid --categorical_lambda 1.0 --continuous_lambda 10.0 --categorical_cardinality 20 20 20 --num_continuous 1 --style_size 128 --plot_every 400 --force_grayscale\r\n`\r\n\r\nI was trying a subset of Chair dataset:\r\n\r\n`\r\nFound 62 images in /home/arghyapal/tinfogan/rendered_chairs/rendered_chairs/c7e590c0390e8d5debe67d9b32c3ddf8/renders.\r\nLoading dataset 62 100% |#######################################################################################################|Time: 0:00:00\r\ndataset loaded.\r\ngenerator architecture\r\nFully connected with num_outputs=1024 followed by relu\r\nFully connected with num_outputs=16384 followed by relu\r\nReshape to [8, 8, 256]\r\nDeconvolution with nkernels=4, stride=1, num_outputs=256 followed by relu\r\nDeconvolution with nkernels=4, stride=2, num_outputs=256 followed by relu\r\nDeconvolution with nkernels=4, stride=2, num_outputs=128 followed by relu\r\nDeconvolution with nkernels=4, stride=2, num_outputs=64 followed by relu\r\nDeconvolution with nkernels=4, stride=1, num_outputs=1 followed by sigmoid\r\n\r\nGenerator produced images of shape (64, 64, 1)\r\n\r\ndiscriminator architecture\r\nConvolution with nkernels=4, stride=2, num_outputs=64 followed by lrelu\r\nConvolution with nkernels=4, stride=2, num_outputs=128 followed by lrelu\r\nConvolution with nkernels=4, stride=2, num_outputs=256 followed by lrelu\r\nConvolution with nkernels=4, stride=1, num_outputs=256 followed by lrelu\r\nConvolution with nkernels=4, stride=1, num_outputs=256 followed by lrelu\r\nFully connected with num_outputs=1024 followed by lrelu\r\n`\r\n\r\n`Traceback (most recent call last):\r\n  File \"train.py\", line 8, in <module>\r\n    train()\r\n  File \"/home/arghyapal/tinfogan/infogan/__init__.py\", line 288, in train\r\n    use_batch_norm=use_batch_norm\r\n  File \"/home/arghyapal/tinfogan/infogan/__init__.py\", line 61, in discriminator_forward\r\n    debug=debug)\r\n  File \"/home/arghyapal/tinfogan/infogan/tf_utils.py\", line 108, in run_network\r\n    scope='layer_%d' % (layer_idx,)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py\", line 181, in func_with_args\r\n    return func(*args, **current_args)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/contrib/layers/python/layers/layers.py\", line 927, in convolution\r\n    outputs = normalizer_fn(outputs, **normalizer_params)\r\n  File \"/home/arghyapal/tinfogan/infogan/tf_utils.py\", line 41, in conv_batch_norm\r\n    ema_apply_op = ema.apply([mean, variance])\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/training/moving_averages.py\", line 375, in apply\r\n    colocate_with_primary=(var.op.type in [\"Variable\", \"VariableV2\"]))\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/training/slot_creator.py\", line 174, in create_zeros_slot\r\n    colocate_with_primary=colocate_with_primary)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/training/slot_creator.py\", line 149, in create_slot_with_initializer\r\n    dtype)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/training/slot_creator.py\", line 66, in _create_slot_var\r\n    validate_shape=validate_shape)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/ops/variable_scope.py\", line 1049, in get_variable\r\n    use_resource=use_resource, custom_getter=custom_getter)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/ops/variable_scope.py\", line 948, in get_variable\r\n    use_resource=use_resource, custom_getter=custom_getter)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/ops/variable_scope.py\", line 349, in get_variable\r\n    validate_shape=validate_shape, use_resource=use_resource)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/contrib/layers/python/layers/layers.py\", line 1334, in layer_variable_getter\r\n    return _model_variable_getter(getter, *args, **kwargs)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/contrib/layers/python/layers/layers.py\", line 1326, in _model_variable_getter\r\n    custom_getter=getter, use_resource=use_resource)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py\", line 181, in func_with_args\r\n    return func(*args, **current_args)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/contrib/framework/python/ops/variables.py\", line 262, in model_variable\r\n    use_resource=use_resource)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py\", line 181, in func_with_args\r\n    return func(*args, **current_args)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/contrib/framework/python/ops/variables.py\", line 217, in variable\r\n    use_resource=use_resource)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/ops/variable_scope.py\", line 341, in _true_getter\r\n    use_resource=use_resource)\r\n  File \"/home/arghyapal/py3_env/lib/python3.4/site-packages/tensorflow/python/ops/variable_scope.py\", line 671, in _get_single_variable\r\n    \"VarScope?\" % name)\r\nValueError: Variable discriminator/layer_0/batch_norm/discriminator_1/layer_0/batch_norm/moments/normalize/mean/ExponentialMovingAverage/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope?\r\n`\r\n\r\n\r\n\r\n\r\nI don't have any idea why this error. Please help me..!!\r\n\r\n\r\nRegards,\r\nArghya"},"comment":{"url":"https://api.github.com/repos/JonathanRaiman/tensorflow-infogan/issues/comments/388567818","html_url":"https://github.com/JonathanRaiman/tensorflow-infogan/issues/11#issuecomment-388567818","issue_url":"https://api.github.com/repos/JonathanRaiman/tensorflow-infogan/issues/11","id":388567818,"user":{"login":"OPzealot","id":18009351,"avatar_url":"https://avatars3.githubusercontent.com/u/18009351?v=4","gravatar_id":"","url":"https://api.github.com/users/OPzealot","html_url":"https://github.com/OPzealot","followers_url":"https://api.github.com/users/OPzealot/followers","following_url":"https://api.github.com/users/OPzealot/following{/other_user}","gists_url":"https://api.github.com/users/OPzealot/gists{/gist_id}","starred_url":"https://api.github.com/users/OPzealot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OPzealot/subscriptions","organizations_url":"https://api.github.com/users/OPzealot/orgs","repos_url":"https://api.github.com/users/OPzealot/repos","events_url":"https://api.github.com/users/OPzealot/events{/privacy}","received_events_url":"https://api.github.com/users/OPzealot/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T16:47:18Z","updated_at":"2018-05-12T16:47:18Z","author_association":"NONE","body":"`iscriminator_true = discriminator_forward(\r\n        true_images,\r\n        discriminator_desc,\r\n        is_training=is_training_discriminator,\r\n        reuse=tf.AUTO_REUSE,\r\n        name=\"discriminator\",\r\n        use_batch_norm=use_batch_norm\r\n    )`\r\nJust modified reuse=tf.AUTO_REUSE. Problem can be solved."}}
{"actor":{"display_login":"OPzealot"}}