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

Overfitting problem #8

Open
maryamhashemi opened this issue Aug 3, 2020 · 2 comments
Open

Overfitting problem #8

maryamhashemi opened this issue Aug 3, 2020 · 2 comments

Comments

@maryamhashemi
Copy link

Hi,
I implemented the model proposed in the VQA paper the same as what you’ve done and also I used processed features provided by VT Vision Lab. Unfortunately, we ran into an overfitting problem. Could you help us to solve this problem?

This is training configuration:
DROPOUT_RATE = 0.5
EMBEDDING_DIM = 300
EPOCHS = 50
BATCH_SIZE = 256
SEQ_LENGTH = 26
EMBEDDING_TYPE = Glove.6b.300d.en
Image_Features = VGG19
Train_size = 215359
Val_size = 121512
optimizer='rmsprop'
loss='categorical_crossentropy'
photo_2020-08-03_09-43-49
photo_2020-08-03_09-43-40

@alireza-git
Copy link

As @maryamhashemi said, we faced this problem.After scrutinizing, We've done 2 actions :

  1. Setting learning rate for rmsprop
  2. L2 normalizng of VGG19's output features .
    These 2 actions solved over fitting problem in our task.Now,our accuracy is about 46 percent.
    Could you explain that is there any thing else to improve this accuracy ?

@Afnanam
Copy link

Afnanam commented Nov 3, 2020

I have the same issue.
also there is an issue when I set mode to Val

for _ in annotations['annotations']:
KeyError: 'annotations'

I think the error occurred because val annotation path is set to question file not annotation file.

but when I set it to annotation file, I got this error

abs_val_y = [ques_annotations[ques_id]['multiple_choice_answer_idx'] for ques_id in ques_data['ques
tion_id_test']]
KeyError: 3506232

Can anyone help me please to solve this error

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

3 participants