Closed Eccentric666 closed 1 year ago
Some mistakes. I used OFA_base model.
In stage 1, I used nohup sh train_caption_stage1_base.sh > train_stage1.out &
In stage 2, I used nohup sh train_caption_stage2_base.sh > train_stage2.out &
add --freeze-resnet
add --freeze-resnet
Thank you for your suggestion! It works!
Hi, thank you for your great work!
I had successfully run the finetuning for image captioning at stage1. However, when I tried to continue to reproduce with your tutorial at stage2, i.e.
nohup sh train_caption_stage2.sh > train_stage2.out & # stage 2, load the best ckpt of stage1 and train with CIDEr optimization
, I was trapped with some bugs.Here is the problem.
I noted that line 490, i.e.
assert step < max_len, f"{step} < {max_len}"
is in the FOR loop at line 335, i.e.for step in range(max_len + 1): # one extra step for EOS marker
. So, how can the line 490 work properly at the last loop?Thank you for your early reply and suggestions! :)