kkirchheim / pytorch-ood

👽 Out-of-Distribution Detection with PyTorch
https://pytorch-ood.readthedocs.io/
Apache License 2.0
255 stars 24 forks source link

TypeError in example #63

Closed tla93 closed 3 months ago

tla93 commented 3 months ago

In the example file examples/loss/unsupervised/cac.py, the following error will be raised.

line 68, in test
    acc = Accuracy(num_classes=10)
          ^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Accuracy.__new__() missing 1 required positional argument: 'task'