You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`
报错信息:
Traceback (most recent call last):
File "main.py", line 447, in
main()
File "main.py", line 419, in main
run_batch(sample=sample_t, model=model, loss_func=loss_func, optimizer=optimizer, phase='Train')
ValueError: too many values to unpack (expected 4)
请问这是因为什么导致的呢
The text was updated successfully, but these errors were encountered:
我将main.py里的run_batch函数中代码注释部分去掉之后运行报错
`
if phase == 'Train' or phase == 'Valid':
label = to_var(sample['label']) # [bs, 6]
label = label.view(-1, 6)
loss1 = loss_func(label_pre[:, :3], label[:, :3])
loss2 = loss_func(label_pre[:, 3:], label[:, 3:])
loss = loss1 + args.beta * loss2
`
报错信息:
Traceback (most recent call last):
File "main.py", line 447, in
main()
File "main.py", line 419, in main
run_batch(sample=sample_t, model=model, loss_func=loss_func, optimizer=optimizer, phase='Train')
ValueError: too many values to unpack (expected 4)
请问这是因为什么导致的呢
The text was updated successfully, but these errors were encountered: