Giter Club home page Giter Club logo

color-classification-cnn's People

Contributors

beerboaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

color-classification-cnn's Issues

code not using GPU ...

I ran the code but GPU is not been used i have installed tensorflow-gpu==1.14.0 and keras==2.2.4. Anyone noticed the same problem or solved it ?

Wrong Input size

Your implementation use an input size of (224, 224, 3) but the paper says they use (227, 227, 3).

Number of epochs

Your implementation use 5 epochs. The paper says that they used 200000 iterations. The training set is composed of 7799 images. Using a batch size of 32 this would be around 820 epochs.

Wrong Normalization

Your implementation uses Batch Normalization but in the paper is said that the network use Local Response Normalization.

cannot find the car dataset

thanks for sharing the code.
I couldn't find the image dataset from the original paper and from the reference [2] inside that paper neither. Would you please provide the image dataset as well, thanks!

Model Training Completed: How to calculate model outputs correctly

Validation accuracy reached over 95% by epoch 5 during training. However, I'm only able to reach 54% while inferencing. Please find the code I use for getting model output below -

input = tf.keras.preprocessing.image.load_img("test/3.jpg", target_size=(224,224))
input_arr = keras.preprocessing.image.img_to_array(input)
input_arr = np.array([input_arr])
#input_arr = input_arr.astype('float32')
#input_arr /= 255
t = time.time()
output = model.predict(input_arr)
y_class = output.argmax(axis=-1)
print("time taken = ", (time.time()-t)*1000)
print(output)
print(y_class)

If I don't rescale the image to [0,1], I get an accuracy of 38%. Also, after if I print output - it is always similar to the following -
[[0. 0. 0. 0. 0. 0. 0. 1. 0.]]
Which means probability for whatever class is 1, and for rest all classes is 0.

File Not Found Error

Run your code but it give error on ln: 136 & 115. No such file or directory: 'train/' ,
kindly tell the technique
i have run color_net_training.py file.

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.