paarthneekhara / text-to-image

Text to image synthesis using thought vectors
MIT License
2.16k stars 394 forks source link

Did you mean to set reuse=tf.AUTO_REUSE in VarScope? #68

Closed thefuturalabs closed 3 years ago

thefuturalabs commented 3 years ago

2021-05-26 00:09:24.773721: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2021-05-26 00:09:24.781327: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. WARNING:tensorflow:From C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\compat\v2_compat.py:96: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term Traceback (most recent call last): File "generate_images.py", line 106, in main() File "generateimages.py", line 64, in main , , , , = gan.build_model() File "C:\Users\Futura Labs\Documents\codes\speechtext_to_image\text-to-image-master\model.py", line 42, in build_model disc_wrong_image, disc_wrong_image_logits = self.discriminator(t_wrong_image, t_real_caption, reuse = True) File "C:\Users\Futura Labs\Documents\codes\speechtext_to_image\text-to-image-master\model.py", line 163, in discriminator h1 = ops.lrelu( self.d_bn1(ops.conv2d(h0, self.options['df_dim']*2, name = 'd_h1_conv'))) #16 File "C:\Users\Futura Labs\Documents\codes\speechtext_to_image\text-to-image-master\Utils\ops.py", line 36, in call ema_apply_op = self.ema.apply([batch_mean, batch_var]) File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\training\moving_averages.py", line 469, in apply "Variable", "VariableV2", "VarHandleOp" File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\training\slot_creator.py", line 197, in create_zeros_slot colocate_with_primary=colocate_with_primary) File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\training\slot_creator.py", line 174, in create_slot_with_initializer dtype) File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\training\slot_creator.py", line 73, in _create_slot_var validate_shape=validate_shape) File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1593, in get_variable aggregation=aggregation) File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 1336, in get_variable aggregation=aggregation) File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 591, in get_variable aggregation=aggregation) File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 543, in _true_getter aggregation=aggregation) File "C:\pythn\envs\abhin\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 911, in _get_single_variable "reuse=tf.AUTO_REUSE in VarScope?" % name) ValueError: Variable d_bn1/d_bn1_2/moments/Squeeze/ExponentialMovingAverage/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope?