#colornet Neural Network to colorize grayscale images
Results
Grayscale | Prediction | Ground Truth |
---|
Eiji K used colornet for anime colorization
Category: Python / Deep Learning |
Watchers: 130 |
Star: 3.6k |
Fork: 333 |
Last update: Jan 20, 2023 |
#colornet Neural Network to colorize grayscale images
Grayscale | Prediction | Ground Truth |
---|
Eiji K used colornet for anime colorization
fixed error (Python 2.7.12, OS X El Capitan, TensorFlow 0.12.0)
tensorflow.python.framework.errors.FailedPreconditionError: Attempting to use uninitialized value input_producer/limit_epochs/epochs [[Node: input_producer/limit_epochs/CountUpTo = CountUpToT=DT_INT64, _class=["loc:@input_producer/limit_epochs/epochs"], limit=1000000000, _device="/job:localhost/replica:0/task:0/cpu:0"]]
any idea about how to solve it?. thanks!
libpng warning: Application was compiled with png.h from libpng-1.6.22
libpng warning: Application is running with png.c from libpng-1.2.53
libpng error: Incompatible libpng version in application and library
Those conditions caused error:
TypeError: Using a `tf.Tensor` as a Python `bool` is not allowed. Use `if t is not None:` instead of `if t:` to test if a tensor is defined, and use the logical TensorFlow ops to test the value of a tensor.
On my OS X El Capitan, Python 2.7.11, Anaconda 4.0.0 and Tensorflow 0.8.0. With those fixes I was able to run a model.
Hey Pavel
Awesome work, and I love to chat more and see if you are interested in working on chat bots. We're hiring talented developers like yourself to work on a revolutionary product on top of messaging platforms like FB Messenger, Viber, Kik, Telegram, etc.
Just a minor (visual) improvement in the README
W1209 14:04:14.659156 34370101248 deprecation_wrapper.py:119] From train.py:159: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.
Traceback (most recent call last):
File "train.py", line 160, in <module>
graph_def.ParseFromString(fileContent)
File "/usr/local/lib/python3.6/site-packages/google/protobuf/message.py", line 187, in ParseFromString
return self.MergeFromString(serialized)
File "/usr/local/lib/python3.6/site-packages/google/protobuf/internal/python_message.py", line 1128, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File "/usr/local/lib/python3.6/site-packages/google/protobuf/internal/python_message.py", line 1180, in InternalParse
buffer, new_pos, wire_type) # pylint: disable=protected-access
File "/usr/local/lib/python3.6/site-packages/google/protobuf/internal/decoder.py", line 952, in _DecodeUnknownField
raise _DecodeError('Wrong wire type in tag.')
google.protobuf.message.DecodeError: Wrong wire type in tag.
py36-tensorflow-1.14.0
filenames = sorted(glob.glob("../colornet//.jpg"))
File "train.py", line 179, in
i don't exactly know why i am facing this error.any solutions to it.
File "/home/atul/Desktop/train.py", line 196, in tf.Tensor
as a Python bool
is not allowed. "
TypeError: Using a tf.Tensor
as a Python bool
is not allowed. Use if t is not None:
instead of if t:
to test if a tensor is defined, and use TensorFlow ops such as tf.cond to execute subgraphs conditioned on the value of a tensor.
Does, anyone have any clue, or is there any script, so as how to test the trained model? It would be quite nice to try it on few B/W images.