Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torchmetrics.Precision error #20

Open
lilly9928 opened this issue Nov 21, 2023 · 1 comment
Open

torchmetrics.Precision error #20

lilly9928 opened this issue Nov 21, 2023 · 1 comment

Comments

@lilly9928
Copy link

hello,
I'm trying to test the model based on the ReadMe file you posted, but I'm getting the following error.

"precision": torchmetrics.Precision(num_classes=2, average=None).to(device),
TypeError: new() missing 1 required positional argument: 'task'

I've been try to modify
"torchmetrics.Precision(num_classes=2, average=None).to(device)" to "torchmetrics.Precision(task = "binary",num_classes=2, average=None).to(device)"

but it doesn't work.

@ttanida
Copy link
Owner

ttanida commented Nov 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants