-
Notifications
You must be signed in to change notification settings - Fork 631
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
Indexing using certain key #1984
Comments
We don't support that and it seems like ds.filter("images.sample_info['filename'] == '0001.jpg'") which will return the samples with the given image name. If you already tried this, could you tell me why it's not a good option for you? |
Thanks, it's because I want to do upsampling and downsampling on the dataset based on certain conditions, if i can do something like ds["0001.jpg"], then I can just play with the image name list, upsample or downsample the image names, then access corresponding records. |
Basically what indexes are for, providing quick access to certain records. |
Hey @noringname! Thanks for the feature request, we've seen custom indexing requested by multiple users and we plan on implementing this in the near future. |
Hi,
I'm wondering if there is an easy way of indexing using certain column (image name) instead of using row number?
For example, I want to check the annotation of "0001.jpg", can I do something like ds["0001.jpg"] to get the record?
The solution I can think of is using the filter function, which is not very convenient.
The text was updated successfully, but these errors were encountered: