Comments (2)
filenames = sorted(glob.glob("../colornet//.jpg"))
File "train.py", line 179, in
colorimage = input_pipeline(filenames, batch_size, num_epochs=num_epochs)
File "train.py", line 31, in input_pipeline
filenames, num_epochs=num_epochs, shuffle=False)
This problem cause by:
filenames = sorted(glob.glob("../colornet//.jpg"))
at line 8 of train.py.Program can't find any .jpg file under this direction because all images are .png form.You can solve this problem by put some jpg image files in this direction or just change this line into:
filenames = sorted(glob.glob("../colornet//"))
yes,just remove the '.jpg'..........=.=
But another bug will appear:
Traceback (most recent call last):
File "train.py", line 185, in
grayscale = tf.concat(3, [grayscale, grayscale, grayscale])
File "/root/anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/util/dispatch.py", line 180, in wrapper
return target(*args, **kwargs)
File "/root/anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/ops/array_ops.py", line 1297, in concat
tensor_shape.scalar())
File "/root/anaconda3/envs/tensorflow/lib/python3.7/site-packages/tensorflow/python/framework/tensor_shape.py", line 1103, in assert_is_compatible_with
raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (3, 1, 224, 224, 1) and () are incompatible
I'm still work on it now. =.=
PS: My English is sucks,So I will appreciate whoever point out any mistake I made in this answer
from colornet.
Any update about shape error? @RibbonsAlmark
from colornet.
Related Issues (15)
- Add a "Getting Started" HOT 12
- tf version
- DecodeError : Tag had invalid wire type HOT 2
- Error in “grayscale = tf.concat(3, [grayscale, grayscale, grayscale])” HOT 3
- error Traceback (most recent call last): File "train.py", line 160, in <module> graph_def.ParseFromString(fileContent) google.protobuf.message.DecodeError: Error parsing messag HOT 2
- Test on B/W images HOT 1
- 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. HOT 5
- Could you please release the reference code?
- train.py fails: google.protobuf.message.DecodeError: Wrong wire type in tag.
- Awesome work, we are hiring
- Better color algorithm
- Missing LICENSE?
- Color tone predictions based on location, orientation and timestamp.
- string_input_producer requires a non-null input tensor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colornet.