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

[Bug]: examples/text_classification/ernie_doc/train.py 参数错误 #5878

Closed
1 task done
now-101 opened this issue May 9, 2023 · 1 comment · Fixed by #8393
Closed
1 task done

[Bug]: examples/text_classification/ernie_doc/train.py 参数错误 #5878

now-101 opened this issue May 9, 2023 · 1 comment · Fixed by #8393
Assignees
Labels
bug Something isn't working triage

Comments

@now-101
Copy link

now-101 commented May 9, 2023

软件环境

- paddlepaddle:
- paddlepaddle-gpu: 
- paddlenlp:

重复问题

  • I have searched the existing issues

错误描述

examples/text_classification/ernie_doc/train.py
line 340:

    predict(model, test_dataloader, args.file_path, memories, test_ds.label_list)

args中不存在参数“args.file_path”,根据代码逻辑,应该是参数“args.test_results_file”

稳定复现步骤 & 代码

python train.py --batch_size 4 --model_name_or_path ernie-doc-base-zh --epoch 5 --output_dir ./checkpoints/

报错如图:
image

@now-101 now-101 added the bug Something isn't working label May 9, 2023
@github-actions github-actions bot added the triage label May 9, 2023
@w5688414
Copy link
Contributor

w5688414 commented May 8, 2024

感谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants