Increase accuracy of CNN model (stuck at really low accuracy)

Hereby is my code: for CNN training on image recognition python # definiton of code

def make_model():


    model = Sequential()
    model.add(Conv2D(16, (3,3),input_shape = (32,32,3), padding = "same", 
    kernel_initializer="glorot_uniform"))
    model.add(LeakyReLU(alpha=0.1))

    model.add(Conv2D(32, (3,3),input_shape = (32,32,3), padding = "same", 
    kernel_initializer="glorot_uniform"))
    model.add(LeakyReLU(alpha=0.1))
    model.add(MaxPooling2D(pool_size = (2,2),padding = "same"))
    model.add(Dropout(0.25))*

  

    model.add(Conv2D(32,(3,3), input_shape = (32,32,3), padding = "same"))
    
    model.add(LeakyReLU(alpha=0.1))

    model.add(Conv2D(64, (3,3),input_shape = (32,32,3), padding = "same"))
    model.add(LeakyReLU(alpha=0.1))

    model.add(MaxPooling2D(pool_size = (2,2),padding = "same"))
    model.add(Dropout(0.25))

    *layer*

    model.add(Flatten())
    model.add(Dense(256))

    *for activation*
    model.add(LeakyReLU(alpha=0.1))
    model.add(Dropout(0.5))
    
    model.add(Dense(10))

    *for activation*
    model.add(LeakyReLU(alpha=0.1))

    model.add(Activation("softmax"))

And then it stuck around with the result which freak me out:**

loss: 7.4918; acc: 0.1226. 

*I have been trying few more way but I dont know exactly what I should do for the right path.



Read more here: https://stackoverflow.com/questions/64945630/increase-accuracy-of-cnn-model-stuck-at-really-low-accuracy

Content Attribution

This content was originally published by Phạm Tâm at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: