Closed andysingal closed 1 year ago
Hi there! In newer versions of torchmetrics it's now required to specify the task and number of classes. E.g., whereas it was
acc = torchmetrics.Accuracy()
before, it's now
acc = torchmetrics.Accuracy(task="multiclass", num_classes=10)
Should be fixed now!
Hey Sebastian, While running the code , i am getting the following error: TypeError: Accuracy.new() missing 1 required positional argument: 'task'
from pytorch_lightning.callbacks import ModelCheckpoint
code before that is the same as shared in your git repo. Thanks, Ankush Singal