Giter VIP home page Giter VIP logo

cvae-gan_tensorlayer's People

Contributors

one-sixth avatar

Stargazers

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

Watchers

 avatar  avatar

cvae-gan_tensorlayer's Issues

Confusion

d_loss_real = tf.reduce_mean(tf.abs(discriminator_real_output - img))
d_loss_fake = tf.reduce_mean(tf.abs(discriminator_real_output - decoder_output))
d_loss_op = d_loss_real - kt * d_loss_fake
kt_update_op = tf.assign(kt, tf.clip_by_value(kt + lamda * (gamma * d_loss_real - d_loss_fake), 0., 1.))
Thank you for sharing your code. I don't understand the discriminator 's loss that is different from the loss function in the paper

There is something wrong with train.py

Traceback (most recent call last):
File "D:\python35\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 510, in _apply_op_helper
preferred_dtype=default_dtype)
File "D:\python35\lib\site-packages\tensorflow\python\framework\ops.py", line 1146, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "D:\python35\lib\site-packages\tensorflow\python\ops\array_ops.py", line 971, in _autopacking_conversion_function
return _autopacking_helper(v, dtype, name or "packed")
File "D:\python35\lib\site-packages\tensorflow\python\ops\array_ops.py", line 922, in _autopacking_helper
constant_op.constant(elem, dtype=dtype, name=str(i)))
File "D:\python35\lib\site-packages\tensorflow\python\framework\constant_op.py", line 208, in constant
value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "D:\python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 430, in make_tensor_proto
raise ValueError("None values not supported.")
ValueError: None values not supported.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\python35\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 524, in _apply_op_helper
values, as_ref=input_arg.is_ref).dtype.name
File "D:\python35\lib\site-packages\tensorflow\python\framework\ops.py", line 1146, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "D:\python35\lib\site-packages\tensorflow\python\ops\array_ops.py", line 971, in _autopacking_conversion_function
return _autopacking_helper(v, dtype, name or "packed")
File "D:\python35\lib\site-packages\tensorflow\python\ops\array_ops.py", line 922, in _autopacking_helper
constant_op.constant(elem, dtype=dtype, name=str(i)))
File "D:\python35\lib\site-packages\tensorflow\python\framework\constant_op.py", line 208, in constant
value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "D:\python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 430, in make_tensor_proto
raise ValueError("None values not supported.")
ValueError: None values not supported.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:/wf/CVAE-GAN_tensorlayer-master/train.py", line 35, in
decoder, decoder_output = vae_net.get_decoder(encoder_output[0], classes_label, False)
File "E:\wf\CVAE-GAN_tensorlayer-master\vae_net.py", line 68, in get_decoder
net = ablock(net, 60, 1, act, 3, get_unique_name())
File "E:\wf\CVAE-GAN_tensorlayer-master\model_utils.py", line 209, in ablock
net = resblock_1(net, n_filter, strides, act, 'rb_0')
File "E:\wf\CVAE-GAN_tensorlayer-master\model_utils.py", line 185, in resblock_1
net = coord_layer(net)
File "E:\wf\CVAE-GAN_tensorlayer-master\model_utils.py", line 78, in coord_layer
return tl.layers.LambdaLayer(net, _add_coord, name='coord_layer')
File "D:\python35\lib\site-packages\tensorlayer\decorators\deprecated_alias.py", line 24, in wrapper
return f(*args, **kwargs)
File "D:\python35\lib\site-packages\tensorlayer\layers\lambda_layers.py", line 77, in init
self.outputs = fn(self.inputs, **self.fn_args)
File "E:\wf\CVAE-GAN_tensorlayer-master\model_utils.py", line 67, in _add_coord
y_coord = tf.tile(y_coord, [batch_size, 1, width, 1]) / (height-1)
File "D:\python35\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 10823, in tile
"Tile", input=input, multiples=multiples, name=name)
File "D:\python35\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 528, in _apply_op_helper
(input_name, err))
ValueError: Tried to convert 'multiples' to a tensor and failed. Error: None values not supported.

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.