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

1 based indexing mismatch between shared1000 filenames and index in nsd_stimuli.hdf5 #6

Open
iancharest opened this issue Oct 2, 2019 · 2 comments

Comments

@iancharest
Copy link
Collaborator

iancharest commented Oct 2, 2019

Hi Tomas,

I just realised that there is a mismatch between the filenames in

os.path.join(nsd_dir, 'Stimuli', 'shared1000', '*.png')

and the image brick.

so when i want to read the stimulus : shared0953_nsd69215.png if I follow the logic explained in the nds_dataset.doc, 0953 is the index in shared1000 space, and 69215 is the index in 73KIDs space.

However, if I want to read and show that same image from the brick, using nsda.read_images() i need to query for 69214.

were you aware of this? I'm wondering then if the same thing happens with the captions? i.e. if I want to return the caption for shared0953_nsd69215.png, should I query for 69214?

ian

@iancharest
Copy link
Collaborator Author

Ok, i can now confirm that this is also the case for the captions.

@iancharest
Copy link
Collaborator Author

One more thing to bear in mind. nsda.read_behaviour returns the 1-based indexing 73K indices! so it all gets very messy, at least with my use of the shared1000 images for analysis when wanting to bring together the captions, the betas, etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant