EgoVLP icon indicating copy to clipboard operation
EgoVLP copied to clipboard

Resaving `egovlp.pth` to only contain `state_dict`

Open gzhihongwei opened this issue 2 years ago • 1 comments

Can the pretrained model (i.e. egovlp.pth) be saved with just state_dict? I reimplemented this model, but was having a hard time loading the checkpoint in my implementation due to config I believe. Besides, I don't believe that those are needed at inference time either. Thanks!

gzhihongwei avatar Jan 04 '23 22:01 gzhihongwei

Hi @gzhihongwei , thanks for your interest, I have put this issue in TDL. I will update when I am done.

QinghongLin avatar Jan 09 '23 09:01 QinghongLin

Hello, has this problem been solved?

shhuangcoder avatar Jul 18 '24 09:07 shhuangcoder

@shhuangcoder The workaround that I found was to import parse_config.py, load the checkpoint, then resave another checkpoint with just state_dict

gzhihongwei avatar Jul 19 '24 18:07 gzhihongwei