Git Product home page Git Product logo

discogan's People

Contributors

chunyuanli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discogan's Issues

Using real world datasets

Hello,
How can we replace the X and the Z dataset with real world datasets? Could you help to explain that with respect to the given code.
Thanks

inference_network

File "C:/Users/DELL/PycharmProjects/DiscoGAN/DiscoGAN_demo.py", line 152, in
rec_z = inference_network(p_x, latent_dim, n_layer_inf, n_hidden_inf, eps_dim )
File "C:/Users/DELL/PycharmProjects/DiscoGAN/DiscoGAN_demo.py", line 103, in inference_network
h = slim.repeat(h, n_layer, slim.fully_connected, n_hidden, activation_fn=tf.nn.relu)

Error: Reuse=True while using slim.repeat

This is the error which i am getting

12 rec_z = inference_network(p_x, latent_dim, n_layer_inf, n_hidden_inf, eps_dim)
13 cost_z = tf.reduce_mean(tf.pow(rec_z - z, 2))
14

in inference_network(x, latent_dim, n_layer, n_hidden, eps_dim)
12 with tf.variable_scope("inference"):
13 h = x
---> 14 h = slim.repeat(h, n_layer, slim.fully_connected, n_hidden, activation_fn=tf.nn.relu)
15 z = slim.fully_connected(h, latent_dim, activation_fn=None, scope="q_z")
16 return z

ValueError: Variable inference/Repeat/fully_connected_1/weights already exists, disallowed. Did you mean to set reuse=True in VarScope? Originally defined at:

File "/home/nikhil/anaconda/envs/tfone/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/variables.py", line 217, in variable
use_resource=use_resource)
File "/home/nikhil/anaconda/envs/tfone/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "/home/nikhil/anaconda/envs/tfone/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/variables.py", line 262, in model_variable
use_resource=use_resource)

I am getting this error for other projects when i am using a model repeatedly.
tensorflow: 1.1.0

Please suggest some solution.
I also tried to restart kernel and run each cell only once.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.