hy-struggle / PRGC

PRGC: Potential Relation and Global Correspondence Based Joint Relational Triple Extraction
111 stars 16 forks source link

After training one epoch, got an error #23

Open KeranLi opened 1 year ago

KeranLi commented 1 year ago

Epoch 1/100 100%|####################################################################################################| 89/89 [00:27<00:00, 3.25it/s, loss=0.288, loss_mat=0.000, loss_rel=0.000, loss_seq=0.288] 0%| | 0/2 [00:00<?, ?Batch/s] Traceback (most recent call last): File "train.py", line 224, in train_and_evaluate(model, params, ex_params, args.restore_file) File "train.py", line 153, in train_and_evaluate val_metrics = evaluate(model, val_loader, params, ex_params, mark='Val') File "F:\code\PRGC\evaluate.py", line 92, in evaluate ex_params=ex_params) ValueError: not enough values to unpack (expected 4, got 3)


I'm so confused about this error. because I confirmed the output of the evaluate function is 3. The expected 4 is non-sense.

32209056 commented 1 year ago

同问,请问解决了吗

258508 commented 1 year ago

我也遇到了,请问解决了吗?

KeranLi commented 1 year ago

这个是缺少参数导致的,要添加上所有的配置参数

258508 commented 1 year ago

可以说一下加哪些参数吗?感谢!

Wangrulin-1128 commented 1 year ago

我之前也遇到这个问题了 一开始在一个服务器上跑的好好 的 换了个服务器就报这个错 我的代码没有改动 后来换了个环境好了 我举得应该是环境的问题吧