Closed tamakoji closed 2 years ago
run_root_cls.py test is defined as 2 input args but 3 are given.
File "run_root_cls.py", line 111, in main test_loss, test_acc = test(test_loader, model, args) TypeError: test() takes 2 positional arguments but 3 were given
https://github.com/zhan-xu/RigNet/blob/c5f5c985ca48700ac416b2f7f76a1fb3dde97554/run_root_cls.py#L111 test_loss, test_acc = test(test_loader, model, args) should be test_loss, test_acc = test(test_loader, model)
test_loss, test_acc = test(test_loader, model, args)
test_loss, test_acc = test(test_loader, model)
thanks for pointing this out!
fix confirmed by commit 0a62754. thanks!
run_root_cls.py test is defined as 2 input args but 3 are given.
https://github.com/zhan-xu/RigNet/blob/c5f5c985ca48700ac416b2f7f76a1fb3dde97554/run_root_cls.py#L111
test_loss, test_acc = test(test_loader, model, args)
should betest_loss, test_acc = test(test_loader, model)