Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model always predicts the dominant class #35

Open
wangwalton opened this issue Jul 20, 2018 · 2 comments
Open

Model always predicts the dominant class #35

wangwalton opened this issue Jul 20, 2018 · 2 comments

Comments

@wangwalton
Copy link

Did not configure the model at all, simply ran

> from keras_fcn import FCN
> fcn_vgg19 = FCN_VGG19(input_shape=(500, 500, 3), classes=21,  
>                       weights='imagenet', trainable_encoder=True)
> fcn_vgg19.compile(optimizer='rmsprop',
>                   loss='categorical_crossentropy',
>                   metrics=['accuracy'])
> fcn_vgg19.fit(X_train, y_train, batch_size=8, epochs=20)

on the BDD dataset of 20 classes.

input size: (batch_size, width, height, channels)
output size: (batch_size, width, height, n_classes)

Assuming data is correct, is the model for certain bug-free?

@wesleytao
Copy link

I met with the same problem. At first, I thought it was due to imbalanced data. Maybe you should try Unet other than this architecture.

@wangwalton
Copy link
Author

I'll give that a try, thanks! What did you do to resolve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants