Giter VIP home page Giter VIP logo

Comments (2)

RibbonsAlmark avatar RibbonsAlmark commented on July 22, 2024

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.

Rive4 avatar Rive4 commented on July 22, 2024

Any update about shape error? @RibbonsAlmark

from colornet.

Related Issues (15)

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.