question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Key ‘use_ema_weights_to_init_param' is not in struct

See original GitHub issue

Hi! Thanks for your amazing work. I’ m trying to run the train_vqa_distributed.sh with the checkpoint vqa_base_best.pt downloaded from your url, but I meet this error. How can I fix it? (I ’ m using the fairseq repo provided by you)

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yangapkucommented, Jun 15, 2022

Hi, I have just tested to run this script on my environment, which ran successfully. Please make sure that you pull and use the latest OFA code and ofa_base.pt. After checking the OFA code is the latest, I would suggest to make a reinstall of fairseq. Please first run pip uninstall fairseq to uninstall the old fairseq and then use pip install -r requirements.txt.

1reaction
yangapkucommented, Jun 15, 2022

Hi, in the script you provided, I notice that the restore_file you specified is ofa_base_bast.pt rather than the finetuned vqa_base_best.pt which you mentioned. I want to make sure which one are you using and finding this error? Typically we suggest to use the pretrained ofa_base.pt checkpoint to perform VQA finetuning, which can reproduce our reported performance using the released script. The ckpt vqa_base_best.pt is already finetuned with the highest validation score on VQA and is expected to be directly used for inference and evaluation. Are you trying to perform continuous finetuning?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] config access errors in the code should include stack trace
When the user is making a config access error in the code the stack trace should include the offending file+line.
Read more >
Create a new key in hydra DictConfig from python file
Essentially I want to run my code and check if a gpu is available or not. If it is, log the device as...
Read more >
Deriving from structs with key fields - RTI Community
Hi there,. I have a basetype. struct Base {. ObjectId sourceID; //@key ... }; //@top-level false //@Extensibility FINAL_EXTENSIBILITY.
Read more >
StructFindKey - Adobe Support
Returns. An array that contains structures with keys that match value. ... If the key is not found, an empty array is returned....
Read more >
Defining and Instantiating Structs - The Rust Programming ...
We create an instance by stating the name of the struct and then add curly brackets containing key: value pairs, where the keys...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found