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

UIE信息抽取 #32

Open
xxm1668 opened this issue Apr 4, 2023 · 3 comments
Open

UIE信息抽取 #32

xxm1668 opened this issue Apr 4, 2023 · 3 comments

Comments

@xxm1668
Copy link

xxm1668 commented Apr 4, 2023

结果没有你写的那么高,只有F1值只有70%左右

@limefilter
Copy link

在运行UIE模型的train.py文件的时候出现了以下报错:
Traceback (most recent call last):
File "/tmp/pycharm_project_244/UIE/train.py", line 328, in
train()
File "/tmp/pycharm_project_244/UIE/train.py", line 249, in train
model = torch.load(os.path.join(args.pretrained_model, 'pytorch_model.bin')) # 加载预训练好的UIE模型,模型结构见:model.UIE()
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 777, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '<'.

请问博主用的是什么pytorch版本?

@White-bbb
Copy link

我也是这个情况

@keyilizzie
Copy link

+1 求解答

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

4 participants