kvfrans / deepcolor

Automatic coloring and shading of manga-style lineart, using Tensorflow + cGANs
http://color.kvfrans.com
553 stars 86 forks source link

Application fails w/ ubuntu 16.04 #4

Open mvillmow opened 7 years ago

mvillmow commented 7 years ago

Command:

python main.py sample

Error:

python main.py sample
Traceback (most recent call last):
  File "main.py", line 238, in <module>
    c = Color(512,1)
  File "main.py", line 37, in __init__
    combined_preimage = tf.concat(3, [self.line_images, self.color_images])
  File "/home/mvillmow/.local/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1061, in concat
    dtype=dtypes.int32).get_shape(
  File "/home/mvillmow/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 611, in convert_to_tensor
    as_ref=False)
  File "/home/mvillmow/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 676, in internal_convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
  File "/home/mvillmow/.local/lib/python2.7/site-packages/tensorflow/python/framework/constant_op.py", line 121, in _constant_tensor_conversion_function
    return constant(v, dtype=dtype, name=name)
  File "/home/mvillmow/.local/lib/python2.7/site-packages/tensorflow/python/framework/constant_op.py", line 102, in constant
    tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
  File "/home/mvillmow/.local/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 376, in make_tensor_proto
    _AssertCompatible(values, dtype)
  File "/home/mvillmow/.local/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible
    (dtype.name, repr(mismatch), type(mismatch).__name__))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

Repro steps:

git clone https://github.com/kvfrans/deepcolor.git
pip install --user tensorflow numpy
sudo apt-get install python-opencv
python main.py sample