Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

add ImageNet stimulus set #45

Merged
merged 1 commit into from
Oct 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions brainio_collection/lookup.csv
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,5 @@ dietterich.Hendrycks2019.jpeg_compression_5,stimulus_set,,S3,https://brainio-con
dicarlo.Rajalingham2020,stimulus_set,StimulusSet,S3,https://brainio.dicarlo.s3.amazonaws.com/image_dicarlo_Rajalingham2020.csv,9a9a6b3115d2d8ce5d54ec2522093d8a87ed13a0,
dicarlo.Rajalingham2020,stimulus_set,,S3,https://brainio.dicarlo.s3.amazonaws.com/image_dicarlo_Rajalingham2020.zip,6097086901032e20f8ae764e9cc06e0a891a3e18,
dicarlo.Rajalingham2020,assembly,NeuronRecordingAssembly,S3,https://brainio.dicarlo.s3.amazonaws.com/assy_dicarlo_Rajalingham2020.nc,ab95ae6c9907438f87b9b13b238244049f588680,dicarlo.Rajalingham2020
fei-fei.Deng2009,stimulus_set,StimulusSet,S3,https://brainio.contrib.s3.amazonaws.com/image_fei-fei_Deng2009.csv,ff79dcf6b0d115e6e8aa8d0fbba3af11dc649e57,
fei-fei.Deng2009,stimulus_set,,S3,https://brainio.contrib.s3.amazonaws.com/image_fei-fei_Deng2009.zip,78172d752d8216a00833cfa34be67c8532ad7330,
8 changes: 8 additions & 0 deletions tests/test_stimuli.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def test_dicarlohvm(self):
'dicarlo.THINGS1',
'dicarlo.THINGS2',
'aru.Kuzovkin2018',
'fei-fei.Deng2009',
))
def test_list_stimulus_set(stimulus_set):
l = brainio_collection.list_stimulus_sets()
Expand All @@ -72,3 +73,10 @@ def test_klab_Zhang2018search():
# Therefore, a total of 300 * 2 + 6 images are there in the stimulus set.
assert len(stimulus_set) == 606
assert len(set(stimulus_set['image_id'])) == 606


@pytest.mark.private_access
def test_feifei_Deng2009():
stimulus_set = brainio_collection.get_stimulus_set('fei-fei.Deng2009')
assert len(stimulus_set) == 50_000
assert len(set(stimulus_set['label'])) == 1_000