Skip to content

error in training  #30

Description

@kevinGit777

hi, I have trouble using src/sequencer-train.sh

FULL ERROR OUTPUT

sequencer-train.sh start
Starting data preprocessing
Please backup existing pt files: /home/hxw170013/APR/chai/results/Golden/final.train*.pt, to avoid overwriting them!
Starting training
Traceback (most recent call last):
File "train.py", line 120, in
main(opt)
File "train.py", line 51, in main
single_main(opt, 0)
File "/home/hxw170013/APR/chai/src/lib/OpenNMT-py/onmt/train_single.py", line 114, in main
first_dataset = torch.load(glob.glob(opt.data + '.train*.pt')[0])
File "/home/hxw170013/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 595, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/hxw170013/miniconda3/lib/python3.8/site-packages/torch/serialization.py", line 764, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
sequencer-train.sh done

I think it might because of the outdated value in version of chai/results/Golden/final.train.0.pt. But I am not sure, Can you help me out on this? Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions