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

Insights Fixes #526

Closed
wants to merge 1 commit into from
Closed

Insights Fixes #526

wants to merge 1 commit into from

Conversation

vivekmig
Copy link
Contributor

Insights example no longer worked after building master. This seems to be because of 2 issues:

  1. Paths in setup.py needed to be updated after this refactoring Insights reorganization #419 .
  2. cifar_torchvision.pt seems to have been corrupted when this file was moved in Insights reorganization #419, based on comparing the sizes in these 2 revisions:
    https://github.com/pytorch/captum/blob/9bcf257f9b3811230f370ced1b0801d8df5aa9ee/captum/insights/models/cifar_torchvision.pt - > 244 KB
    https://github.com/pytorch/captum/blob/master/captum/insights/attr_vis/models/cifar_torchvision.pt - >239 KB (master)

It seems like this was caused by the new file not being detected as binary, causing some corruption when pushed. This updates gitattributes to treat all .pt files as binary.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@vivekmig has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@vivekmig merged this pull request in 26cad25.

NarineK pushed a commit to NarineK/captum-1 that referenced this pull request Nov 19, 2020
Summary:
Insights example no longer worked after building master. This seems to be because of 2 issues:

1. Paths in setup.py needed to be updated after this refactoring pytorch#419 .
2. cifar_torchvision.pt seems to have been corrupted when this file was moved in pytorch#419, based on comparing the sizes in these 2 revisions:
https://github.com/pytorch/captum/blob/9bcf257f9b3811230f370ced1b0801d8df5aa9ee/captum/insights/models/cifar_torchvision.pt - > 244 KB
https://github.com/pytorch/captum/blob/master/captum/insights/attr_vis/models/cifar_torchvision.pt - >239 KB (master)

It seems like this was caused by the new file not being detected as binary, causing some corruption when pushed. This updates gitattributes to treat all .pt files as binary.

Pull Request resolved: pytorch#526

Reviewed By: bilalsal

Differential Revision: D24952285

Pulled By: vivekmig

fbshipit-source-id: 77b54caad7a4f2d2888ea59260603e00d62748ec
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.

2 participants