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

_pickle.UnpicklingError: invalid load key, 'v'. #175

Open
violet2274 opened this issue Feb 27, 2023 · 0 comments
Open

_pickle.UnpicklingError: invalid load key, 'v'. #175

violet2274 opened this issue Feb 27, 2023 · 0 comments

Comments

@violet2274
Copy link

iter 283217 (epoch 24), train_loss = 1.939, time/batch = 0.101
Traceback (most recent call last):
File "train.py", line 275, in
train(opt)
File "train.py", line 146, in train
init_scorer(opt.cached_tokens)
File "D:\01\misc\rewards.py", line 23, in init_scorer
CiderD_scorer = CiderD_scorer or CiderD(df=cached_tokens)
File "D:\01\cider\pyciderevalcap\ciderD\ciderD.py", line 28, in init
self.cider_scorer = CiderScorer(n=self._n, df_mode=self._df)
File "D:\01\cider\pyciderevalcap\ciderD\ciderD_scorer.py", line 82, in init
pkl_file = cPickle.load(open(os.path.join('data', df_mode + '.p'),'rb'), **(dict(encoding='latin1') if six.PY3 else {}))
_pickle.UnpicklingError: invalid load key, 'v'.
This problem appears in every trained model, how to solve it?

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

No branches or pull requests

1 participant