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

VinVL Image captioning raises AttributeError: 'NoneType' object has no attribute 'img_feature_dim' #143

Open
or-toledano opened this issue Sep 16, 2021 · 5 comments · May be fixed by #144

Comments

@or-toledano
Copy link

or-toledano commented Sep 16, 2021

To reproduce: run the python scripts from VinVL_MODEL_ZOO.md under

Image Captioning on COCO
Script to finetune for base model:

  1. First train with cross-entropy loss (8 V100 with 16G mem):

And under:

Script to finetune for large model:

  1. First train with cross-entropy loss (8 V100 with 32G mem):

Fixed by PR #144

or-toledano added a commit to or-toledano/Oscar that referenced this issue Sep 16, 2021
@yaolinli
Copy link

yaolinli commented Nov 4, 2021

To reproduce: run the python scripts from VinVL_MODEL_ZOO.md under

Image Captioning on COCO
Script to finetune for base model:

  1. First train with cross-entropy loss (8 V100 with 16G mem):

And under:

Script to finetune for large model:

  1. First train with cross-entropy loss (8 V100 with 32G mem):

Fixed by PR #144

Hi~ After solving this problem, have you fine-tuned the released ./pretrained_base/checkpoint-2000000 successfully and reproduced the results presented in the paper? Did you successfully download the coco caption dataset used to fine-tune the pre-trained model?

@SYSUmrlian
Copy link

my problem is this when runnning oscar Model_zoo.md script it raises:config.img_feature_dim = args.img_feature_dim.AttributeError: 'NoneType' object has no attribute 'img_feature_dim'
Please i need help desperately

@or-toledano
Copy link
Author

Fixed by PR #144

@SYSUmrlian
Copy link

@or-toledano
i write down this line:
--model_name_or_path pretrained_models/image_captioning/pretrained_base/checkpoint-2000000
but still raise assertionserror:
File "oscar/run captioninq.py", line 330, in build dataset
assert op.isfile(yaml file)

@densechen
Copy link

@SYSUmrlian Try to specify the full path of pretrained model.

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

Successfully merging a pull request may close this issue.

4 participants