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

Code to generate "unicl_a#ShopAndDining/unicl_final.pth" #4

Open
yuyangdu01 opened this issue Mar 23, 2023 · 1 comment
Open

Code to generate "unicl_a#ShopAndDining/unicl_final.pth" #4

yuyangdu01 opened this issue Mar 23, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@yuyangdu01
Copy link

Thank you for your amazing work. When following your code and paper, I got stuck in the training scripts of UniVQA (CLVQA/run_scripts/mmclvqa/scene/S_run_distilgpt2_wogt_wtt_1.5_S1.sh).

Specifically, the error is "...path/unicl_a#ShopAndDining/unicl_final.pth doesn't exist", as shown in the below figure
error

I think the error may be related with line 18 of CLVQA/run_scripts/mmclvqa/scene/S_run_distilgpt2_wogt_wtt_1.5_S1.sh (highlighted below), which needs "unicl_a#ShopAndDining/unicl_final.pth" as an resume file. Could you please help provide the scripts for generating "unicl_a#ShopAndDining/unicl_final.pth"? Thanks a lot!
code1

@StanLei52
Copy link
Collaborator

StanLei52 commented Mar 23, 2023

Hi,

Thank you for your interest. I am sorry that the README file is not clear since I missed the starting training of each stage. You should train each stage separately first to obtain the model checkpoint of each task sequence. I will update the README as soon as possible.

A workaround to do this is to call this function: gen_standalone. For example, to obtain the checkpoints for stages under the scene setting, call gen_standalone(CUDA_DEVICE, "scene", "unicl")(change to functional if needed) and the program will generate the corresponding commands which follow this format:

 CUDA_VISIBLE_DEVICES=$DEVICE mmf_run dataset=clvqa  \
   model=unicl \
   config=EXP_CONFIG/{}/cl_{}_{}_standalone.yaml \
   env.save_dir=/Users/stan/exp/clvqa/save/stand_alone/{}/{}_{} \
   training.checkpoint_interval=4000 \
   training.batch_size=32 \
   training.callbacks=[] 

Please also modify the path for env.save_dir. Conduct these "stand_alone" experiments first. After the checkpoints are saved, you can proceed for continual learning experiments.

@StanLei52 StanLei52 added the documentation Improvements or additions to documentation label Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants