I want to design CNN for dataset that have 300 classes. I have tested with following model for two classes. It gives good accuracy.
model = Sequential([
Conv2D(16, 3, padding='same', activation='relu', input_shape=(IMG_HEIGHT, IMG_WIDTH ,3)),
MaxPooling2D(),
Conv2D(32, 3, padding='same', activation='relu'),
MaxPooling2D(),
Conv2D(64, 3, padding='same', activation='relu'),
MaxPooling2D(),
Flatten(),
Dense(512, activation='relu'),
Dense(1, activation='sigmoid')
])
But I'm increasing number of classes as 5, accuracy decreases around to 0.2. How can I design CNN architecture for 300 classes?
tf.keras.applicationsmodule. - Shubham Panchal