PRGC icon indicating copy to clipboard operation
PRGC copied to clipboard

model 的evaluate中argument命令缺失问题

Open jielunzhou18754 opened this issue 2 years ago • 3 comments

您好,打扰您了我在使用您的模型训练NYT数据集在训练完之后想使用evaluate.py评估一下模型效果,结果evaluate.sh中--mode没有在evaluate.py中定义报错 evaluate.py: error: unrecognized arguments: --mode=test 以及 Traceback (most recent call last): File "/root/PRGC-main/evaluate.py", line 142, in 'corres_threshold': args.mat_threshold, AttributeError: 'Namespace' object has no attribute 'mat_threshold'请问您可以给说一下解决思路吗?万分感谢

jielunzhou18754 avatar Apr 07 '22 02:04 jielunzhou18754

您好,我也遇到了这个 error: unrecognized arguments: --mode=test,请问您解决了吗?感谢

suexin27 avatar May 19 '22 08:05 suexin27

您好,我也遇到了这个 error: unrecognized arguments: --mode=test,请问您解决了吗?感谢

我在前面加了个parser.add_argument('--mode', type=str, default="test", help="xxxx") 这串字典要保持一致:ex_params = { 'corres_threshold': args.corres_threshold, 'rel_threshold': args.rel_threshold, 'ensure_corres': args.ensure_corres, 'ensure_rel': args.ensure_rel, 'emb_fusion': args.emb_fusion }

18438602970 avatar May 22 '22 17:05 18438602970

现在有更好的方法了吗

yxy0102 avatar Nov 19 '22 09:11 yxy0102