Skip to content

Commit 3cd1a30

Browse files
committed
add code
1 parent 32ee8c8 commit 3cd1a30

File tree

287 files changed

+39203
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

287 files changed

+39203
-2
lines changed

.gitignore

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
.idea/
10+
11+
# Distribution / packaging
12+
.Python
13+
build/
14+
develop-eggs/
15+
dist/
16+
downloads/
17+
eggs/
18+
.eggs/
19+
lib/
20+
lib64/
21+
parts/
22+
sdist/
23+
var/
24+
wheels/
25+
pip-wheel-metadata/
26+
share/python-wheels/
27+
*.egg-info/
28+
.installed.cfg
29+
*.egg
30+
MANIFEST
31+
32+
# PyInstaller
33+
# Usually these files are written by a python script from a template
34+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
35+
*.manifest
36+
*.spec
37+
38+
# Installer logs
39+
pip-log.txt
40+
pip-delete-this-directory.txt
41+
42+
# Unit test / coverage reports
43+
htmlcov/
44+
.tox/
45+
.nox/
46+
.coverage
47+
.coverage.*
48+
.cache
49+
nosetests.xml
50+
coverage.xml
51+
*.cover
52+
*.py,cover
53+
.hypothesis/
54+
.pytest_cache/
55+
56+
# Translations
57+
*.mo
58+
*.pot
59+
60+
# Django stuff:
61+
*.log
62+
local_settings.py
63+
db.sqlite3
64+
db.sqlite3-journal
65+
66+
# Flask stuff:
67+
instance/
68+
.webassets-cache
69+
70+
# Scrapy stuff:
71+
.scrapy
72+
73+
# Sphinx documentation
74+
docs/_build/
75+
76+
# PyBuilder
77+
target/
78+
79+
# Jupyter Notebook
80+
.ipynb_checkpoints
81+
82+
# IPython
83+
profile_default/
84+
ipython_config.py
85+
86+
# pyenv
87+
.python-version
88+
89+
# pipenv
90+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
92+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
93+
# install all needed dependencies.
94+
#Pipfile.lock
95+
96+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
97+
__pypackages__/
98+
99+
# Celery stuff
100+
celerybeat-schedule
101+
celerybeat.pid
102+
103+
# SageMath parsed files
104+
*.sage.py
105+
106+
# Environments
107+
.env
108+
.venv
109+
env/
110+
venv/
111+
ENV/
112+
env.bak/
113+
venv.bak/
114+
115+
# Spyder project settings
116+
.spyderproject
117+
.spyproject
118+
119+
# Rope project settings
120+
.ropeproject
121+
122+
# mkdocs documentation
123+
/site
124+
125+
# mypy
126+
.mypy_cache/
127+
.dmypy.json
128+
dmypy.json
129+
130+
# Pyre type checker
131+
.pyre/
132+
133+
# Mac files
134+
*.DS_Store

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2020-2021 Roland S. Zimmermann and Judy Borowski
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
# Code for: *How Well do Feature Visualizations Support Causal Understanding of CNN Activations?*
1+
# How Well do Feature Visualizations Support Causal Understanding of CNN Activations?
2+
This repository contains code to reproduce the experiments described in the NeurIPS 2021 paper [How Well do Feature Visualizations Support Causal Understanding of CNN Activations?](https://arxiv.org/abs/2106.12447) by Roland S. Zimmermann*, Judy Borowski*, Robert Geirhos, Matthias Bethge', Tom S. A. Wallis', Wieland Brendel'.
3+
If you have any questions, please reach out via email or create an issue here on GitHub and we'll try to answer it.
24

3-
Coming soon.
5+
## Structure
6+
The [mturk](mturk/README.md) folder contains the implementation of the experiments' UI. Tools to host this on a web server can be found in the [server](server/README.md) directory. To generate the stimuli used in the experiments, look at the [tools/data-generation](tools/data-generation/README.md) folder. For performing the experiment using AWS Mechanical Turk, use the tools proved in [tools/mturk](tools/mturk/README.md). Finally, to evaluate the data and re-create the figures from the paper, use the notebooks provided in [tools/data-analysis](tools/data-analysis/README.md).
7+
8+
## Citation
9+
```bibtex
10+
@article{zimmermann2021well,
11+
title={How Well do Feature Visualizations Support Causal Understanding of CNN Activations?},
12+
author={Zimmermann, Roland S and Borowski, Judy and Geirhos, Robert and Bethge, Matthias and Wallis, Thomas SA and Brendel, Wieland},
13+
journal={arXiv preprint arXiv:2106.12447},
14+
year={2021}
15+
}
16+
```

mturk/2afc/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# UI of the 2AFC Psychophysical Experiment
2+
This folder contains the frontend of the psychophysical experiment used to replicate the results of Borowski and Zimmermann et al. 2021.

mturk/2afc/start.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>MTurk Start Page</title>
6+
<script src="../jspsych/jspsych.js"></script>
7+
<link href="../jspsych/css/jspsych.css" rel="stylesheet" />
8+
<script src="../utils.js"></script>
9+
<script src="start.js"></script>
10+
</head>
11+
<body onload="initialize();" style="background-color: #747474; color: white">
12+
<script>
13+
initialize();
14+
</script>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)