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

resolve deprecated compute_on_step #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

None yet

1 participant