-
Hi, my problem is the following: from torchmetrics import Accuracy accuracy = Accuracy().to(device) TypeError: Accuracy.new() missing 1 required positional argument: 'task' I did the exact same thing as in the video (min: 13:57:00) but it doesn't work. I think I have to put a parameter between the paranthesis like task=task (like task is the amount of classes we have), but it still doesn't work. Do somebody have an idea? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Bjoern-2, This was a problem with the version of See the code fix here: #318 |
Beta Was this translation helpful? Give feedback.
Hi @Bjoern-2,
This was a problem with the version of
TorchMetrics
introducing thetask
parameter.See the code fix here: #318