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

Fixing deprecation warnings #17

Open
zr-zhou0o0 opened this issue Aug 17, 2024 · 0 comments
Open

Fixing deprecation warnings #17

zr-zhou0o0 opened this issue Aug 17, 2024 · 0 comments

Comments

@zr-zhou0o0
Copy link

I encountered two warnings during calculating inception score, and I'd like to propose these fixes:

Line 37, inception_model = inception_v3(pretrained=True, transform_input=False).type(dtype)
change the pretrained=True to weights=Inception_V3_Weights.IMAGENET1K_V1

Line 44, return F.softmax(x).data.cpu().numpy()
change the softmax(x) to softmax(x, dim=1)

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

No branches or pull requests

1 participant