GithubHelp home page GithubHelp logo

From merging shape 0 with other shapes. for 'concat/concat_dim' (op: 'Pack') with input shapes: [64,100], [64,256] about text-to-image HOT 2 OPEN

krnk111 avatar krnk111 commented on August 22, 2024
From merging shape 0 with other shapes. for 'concat/concat_dim' (op: 'Pack') with input shapes: [64,100], [64,256]

from text-to-image.

Comments (2)

krnk111 avatar krnk111 commented on August 22, 2024

the above error msg i am getting when I am using default options for train.py.

if I change the "--z_dim" == 256, I am getting the following error,

/home/naveen/anaconda3/lib/python3.7/site-packages/dask/config.py:168: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(f.read()) or {}
WARNING:tensorflow:From /home/naveen/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1630: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
(64, 256)
Traceback (most recent call last):
File "/home/naveen/eclipse-workspace/text-to-image-master/train.py", line 238, in
main()
File "/home/naveen/eclipse-workspace/text-to-image-master/train.py", line 76, in main
input_tensors, variables, loss, outputs, checks = gan.build_model()
File "/home/naveen/eclipse-workspace/text-to-image-master/model.py", line 39, in build_model
fake_image = self.generator(t_z, t_real_caption)
File "/home/naveen/eclipse-workspace/text-to-image-master/model.py", line 141, in generator
z_concat = tf.concat(1, [t_z, reduced_text_embedding])
File "/home/naveen/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/util/dispatch.py", line 180, in wrapper
return target(*args, **kwargs)
File "/home/naveen/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 1427, in concat
ops.convert_to_tensor(axis, name="concat_dim",dtype=dtypes.int32).get_shape().assert_has_rank(0)
File "/home/naveen/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/framework/tensor_shape.py", line 995, in assert_has_rank
raise ValueError("Shape %s must have rank %d" % (self, rank))
ValueError: Shape (2, 64, 256) must have rank 0.

I request your help in this regard....

from text-to-image.

jerryzz668 avatar jerryzz668 commented on August 22, 2024

I meet the same question, can somebody else fix this question

from text-to-image.

Related Issues (20)

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.