forked from brain-score/vision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_setup.sh
executable file
·54 lines (51 loc) · 2.57 KB
/
test_setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# get directory of this script (i.e. tests), following https://stackoverflow.com/a/246128/2225200
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
for f in \
alexnet-freemanziemba2013.aperture-private.nc \
alexnet-majaj2015.private-features.12.nc \
CORnetZ-rajalingham2018public.nc \
cornet_s-kar2019.nc \
alexnet-sanghavi2020-features.12.nc \
alexnet-sanghavijozwik2020-features.12.nc \
alexnet-sanghavimurty2020-features.12.nc \
alexnet-rajalingham2020-features.12.nc \
resnet-50-pytorch-3deg-Geirhos2021_colour.nc \
resnet-50-pytorch-3deg-Geirhos2021_contrast.nc \
resnet-50-pytorch-3deg-Geirhos2021_cue-conflict.nc \
resnet-50-pytorch-3deg-Geirhos2021_edge.nc \
resnet-50-pytorch-3deg-Geirhos2021_eidolonI.nc \
resnet-50-pytorch-3deg-Geirhos2021_eidolonII.nc \
resnet-50-pytorch-3deg-Geirhos2021_eidolonIII.nc \
resnet-50-pytorch-3deg-Geirhos2021_false-colour.nc \
resnet-50-pytorch-3deg-Geirhos2021_high-pass.nc \
resnet-50-pytorch-3deg-Geirhos2021_low-pass.nc \
resnet-50-pytorch-3deg-Geirhos2021_phase-scrambling.nc \
resnet-50-pytorch-3deg-Geirhos2021_power-equalisation.nc \
resnet-50-pytorch-3deg-Geirhos2021_rotation.nc \
resnet-50-pytorch-3deg-Geirhos2021_silhouette.nc \
resnet-50-pytorch-3deg-Geirhos2021_sketch.nc \
resnet-50-pytorch-3deg-Geirhos2021_stylized.nc \
resnet-50-pytorch-3deg-Geirhos2021_uniform-noise.nc \
resnet-50-pytorch-8deg-Geirhos2021_colour.nc \
resnet-50-pytorch-8deg-Geirhos2021_contrast.nc \
resnet-50-pytorch-8deg-Geirhos2021_cue-conflict.nc \
resnet-50-pytorch-8deg-Geirhos2021_edge.nc \
resnet-50-pytorch-8deg-Geirhos2021_eidolonI.nc \
resnet-50-pytorch-8deg-Geirhos2021_eidolonII.nc \
resnet-50-pytorch-8deg-Geirhos2021_eidolonIII.nc \
resnet-50-pytorch-8deg-Geirhos2021_false-colour.nc \
resnet-50-pytorch-8deg-Geirhos2021_high-pass.nc \
resnet-50-pytorch-8deg-Geirhos2021_low-pass.nc \
resnet-50-pytorch-8deg-Geirhos2021_phase-scrambling.nc \
resnet-50-pytorch-8deg-Geirhos2021_power-equalisation.nc \
resnet-50-pytorch-8deg-Geirhos2021_rotation.nc \
resnet-50-pytorch-8deg-Geirhos2021_silhouette.nc \
resnet-50-pytorch-8deg-Geirhos2021_sketch.nc \
resnet-50-pytorch-8deg-Geirhos2021_stylized.nc \
resnet-50-pytorch-8deg-Geirhos2021_uniform-noise.nc
do
aws --no-sign-request s3 cp s3://brain-score-tests/tests/test_benchmarks/${f} ${SCRIPT_DIR}/tests/test_benchmarks/
done
pip install git+https://github.com/brain-score/model-tools --no-deps
pip install torch torchvision