Skip to content

Commit 26cad25

Browse files
vivekmigfacebook-github-bot
authored andcommitted
Insights Fixes (#526)
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 #419 . 2. cifar_torchvision.pt seems to have been corrupted when this file was moved in #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: #526 Reviewed By: bilalsal Differential Revision: D24952285 Pulled By: vivekmig fbshipit-source-id: 77b54caad7a4f2d2888ea59260603e00d62748ec
1 parent 83a7e3e commit 26cad25

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
tutorials/* linguist-documentation
2+
*.pt binary
Binary file not shown.

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def report(*args):
5454
INSIGHTS_REQUIRES = ["flask", "ipython", "ipywidgets", "jupyter"]
5555

5656
INSIGHTS_FILE_SUBDIRS = [
57-
"insights/frontend/build",
58-
"insights/models",
59-
"insights/widget/static",
57+
"insights/attr_vis/frontend/build",
58+
"insights/attr_vis/models",
59+
"insights/attr_vis/widget/static",
6060
]
6161

6262
TUTORIALS_REQUIRES = INSIGHTS_REQUIRES + ["torchtext", "torchvision"]

0 commit comments

Comments
 (0)