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

作者您好,请问如何使用训练好的Checkpoint评估模型 #93

Open
1 of 5 tasks
yzxx667 opened this issue Dec 18, 2024 · 5 comments
Open
1 of 5 tasks
Labels
question Further information is requested

Comments

@yzxx667
Copy link

yzxx667 commented Dec 18, 2024

Agreement

  • Fill the space in brackets with x to check the agreement items.
  • Before submitting this issue, I've fully checked the instructions in README.md.
  • Before submitting this issue, I'd searched in the issue area and didn't find a solved issue that covers my problem.
  • This issue is about the toolkit itself, not Python, pip or other programming basics.
  • I understand if I do not check all the agreemnt items above, my issue MAY BE CLOSED OR REMOVED WITHOUT FURTHER EXPLANATIONS.

Problem

您好,我使用PTPCG模型跑了100个epoch,保存了最佳的Checkpoint。现在我想使用这个Checkpoint评估我重新划分后的ChFinAnn数据集(按照论元数量重新划分了一下),应该怎么做呢?

You can reproduce the problem by ...

I have tried ..., but it goes to ...

I have checked the source codes, and the problem may come from ...

Environment

Environment Values
System Windows/Linux
GPU Device
CUDA Version
Python Version
PyTorch Version
dee (the Toolkit) Version

Full Log

Log:

@yzxx667 yzxx667 added the question Further information is requested label Dec 18, 2024
@Spico197
Copy link
Owner

嗨,感谢您对我们项目的关注~

可以参考这里的代码,使用和训练相似的设置,增加模型导入,跳过训练过程,直接评价:https://github.com/Spico197/DocEE/blob/main/run_dee_task.py#L273-L284

@yzxx667
Copy link
Author

yzxx667 commented Dec 18, 2024

你好。我直接将skip_train超参数改为True,然后更换了划分后的新数据集,但是最终评估的结果还是之前训练时保存的评估结果。
image

@yzxx667
Copy link
Author

yzxx667 commented Dec 18, 2024

请问是还需要修改什么地方吗?

你好。我直接将skip_train超参数改为True,然后更换了划分后的新数据集,但是最终评估的结果还是之前训练时保存的评估结果。 image

@Spico197
Copy link
Owner

了解了,看起来像是直接输出了之前的结果,没有重新在新数据上推理。重新调用一下dee_task.eval试试看。

https://github.com/Spico197/DocEE/blob/main/dee%2Ftasks%2Fdee_task.py#L854-L861

@yzxx667
Copy link
Author

yzxx667 commented Dec 18, 2024

好的,我尝试一下,感谢回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants