Skip to content

Conversation

@h2th3k
Copy link

@h2th3k h2th3k commented May 10, 2024

Hi,
Start from here compute_on_step is deprecated. New version of torchmetrics will rase
ValueError: Unexpected keyword arguments: compute_on_step.

Quick fix is to remove them to be compatible with the new version(1.4.0): e.g.

'top_1': torchmetrics.Accuracy(task='multiclass', num_classes=1000, compute_on_step=False).to(self.gpu),

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

Successfully merging this pull request may close these issues.

1 participant