训练完模型后修改args.py中mode: str = "test",无法运行模型文件
ANTAGNIST opened this issue · 4 comments
ANTAGNIST commented
大佬您好:
我训练时候的src/args.py中的mode: str = "train-test",能训练并预测模型,这不会出错。但当我将src/args.py中的mode: str = "test",我于src.utils.py中的get_best_ckpt()
中ckpt_dirs = sorted(output_dir.glob("ckpt-*"))
断点发现,ckpt_dirs
返回空字符串,我搞不清楚为什么会这样,希望大佬能解惑。
非常感谢!
另外,我做了一张该代码的uml图,如有不正确的地方,希望各位指正~
https://drive.google.com/file/d/1jc0of_o-XIJvoqIjQMnoM6aUn5m3bm6j/view?usp=sharing
ANTAGNIST commented
找到原因了,是output_dir: str = "../result",而不是"result"
luo-yining commented
如果还有其他问题,请重开issue
chen-yingfa commented
Send me an email if you have urgent issues, chenyingfa1999 (at) qq (dot) com
ANTAGNIST commented
okay, I will do it, thank you for your reply!
在 2024年3月6日星期三,Chen Yingfa ***@***.***> 写道:
… Send me an email if you have urgent issues, chenyingfa1999 (at) qq (dot)
com
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO6IRM6KP7JUXUXSOQGSBDLYW4NTHAVCNFSM6AAAAABDZZCMWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBQHEZDIMJXGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>