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: could not find MARK #15

Open
wangjialin97 opened this issue Sep 4, 2023 · 0 comments
Open

_pickle.UnpicklingError: could not find MARK #15

wangjialin97 opened this issue Sep 4, 2023 · 0 comments

Comments

@wangjialin97
Copy link

when I run "python main.py", there are errors to me.

Traceback (most recent call last):
File "/home/wangjl/multimodal-emotion-recognition/main.py", line 50, in
model, parameters = generate_model(opt)
File "/home/wangjl/multimodal-emotion-recognition/model.py", line 13, in generate_model
model = multimodalcnn.MultiModalCNN(opt.n_classes, fusion = opt.fusion, seq_length = opt.sample_duration, pretr_ef=opt.pretrain_path, num_heads=opt.num_heads)
File "/home/wangjl/multimodal-emotion-recognition/models/multimodalcnn.py", line 171, in init
init_feature_extractor(self.visual_model, pretr_ef)
File "/home/wangjl/multimodal-emotion-recognition/models/multimodalcnn.py", line 107, in init_feature_extractor
checkpoint = torch.load(f, map_location=torch.device('cpu'))
File "/mnt/raid1/dataMapping/NLP/env/MER/lib/python3.9/site-packages/torch/serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/mnt/raid1/dataMapping/NLP/env/MER/lib/python3.9/site-packages/torch/serialization.py", line 777, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: could not find MARK

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