beerboaa / color-classification-cnn Goto Github PK
View Code? Open in Web Editor NEWcolor recognition (convolutional neural network implemented in Keras)
color recognition (convolutional neural network implemented in Keras)
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 ?
Was anybody able to find the dataset?
Your implementation use an input size of (224, 224, 3) but the paper says they use (227, 227, 3).
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.
Where I can find the labeled data set of colored cars?
Your implementation uses Batch Normalization but in the paper is said that the network use Local Response Normalization.
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!
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.