one-sixth / cvae-gan_tensorlayer Goto Github PK
View Code? Open in Web Editor NEWA CVAE-GAN implementation with tensorlayer1.x
A CVAE-GAN implementation with tensorlayer1.x
Thank you for your code sharing, would like to ask what is your code running environment, such as Tensorflow and Tensorlayer version, thanks again
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.