Skip to content

Optim-wip: Add the pre-trained InceptionV1 Places365 model #935

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

Merged
merged 1 commit into from
May 10, 2022

Conversation

ProGamerGov
Copy link
Contributor

See: #655 for more details on this PR

@NarineK
Copy link
Contributor

NarineK commented May 8, 2022

@ProGamerGov, is it possible to also include the test fixes ? CircleCI is now failing.

@ProGamerGov
Copy link
Contributor Author

ProGamerGov commented May 9, 2022

@NarineK I fixed the black linting errors. The mypy test in the in the CircleCI test_py36_pip_release will fail though as there is a somewhat complex issue with type hinting in one of the other Captum modules. We can still use it however to check for type hinting errors. I guess the issue is no longer present? There's a Conda error that's unrelated to the module optim.

@@ -205,7 +205,7 @@ def compute_expected_attribution_and_sq(attribution):

attribution = attribution.view(attribution_shape)
expected_attribution = attribution.mean(dim=1, keepdim=False)
expected_attribution_sq = torch.mean(attribution ** 2, dim=1, keepdim=False)
expected_attribution_sq = torch.mean(attribution**2, dim=1, keepdim=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ProGamerGov, this PR has also formatted the files in the non optim related code. Perhaps you can bring this back. Also, maybe you have a different version of code formatter that's why it changed the formatting ?

Copy link
Contributor Author

@ProGamerGov ProGamerGov May 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NarineK The black tests fail currently because the optim-wip branch's version of black was never pinned to a specific version. I've reverted the changes as they are not required in the master branch's pinned version of black.

@NarineK
Copy link
Contributor

NarineK commented May 9, 2022

@ProGamerGov, let's remove the changes that aren't related to optim and copy the fix related to flask. Is this flask error related to flask version ?

@ProGamerGov ProGamerGov force-pushed the optim-wip-places365-new branch from 249f2d9 to 418027c Compare May 9, 2022 16:12
@ProGamerGov
Copy link
Contributor Author

@NarineK It looks like the Conda failure is due to the version of flask, but I'm not sure what the fix would be. It's also unrelated to the optim module.

@NarineK NarineK merged commit 77c80f0 into pytorch:optim-wip May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants