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

Feature Request: Inspect individual files in a FileSeries #1555

Open
cemlyn007 opened this issue Nov 4, 2023 · 1 comment
Open

Feature Request: Inspect individual files in a FileSeries #1555

cemlyn007 opened this issue Nov 4, 2023 · 1 comment
Assignees

Comments

@cemlyn007
Copy link

Is your feature request related to a problem? Please describe.

Please can we have a way to access the individual files in a FileSeries in Python for analysis after the experiment. Currently it seems like I can download all or the last one and I am not able to see what index or timestamp was associated with the particular download file.

Summary:

  • Option to download specific files in a FileSeries
  • Access the timestamp and index associated with any File in the FileSeries

Describe alternatives you've considered

I tried iterating over the FileSeries but I got an error and I think it has something to do with part of my field name having an integer, for example if I have a FileSeries "train/predicted_images/0".

@SiddhantSadangi
Copy link
Member

Hey @cemlyn007 👋

Thank you for submitting the feature request.

I have forwarded it to the product team for review. We will reach out to you if we need any additional information 🚀

Regarding the error you received - TypeError: sequence item 1: expected str instance, int found - it occurred because we currently do not support iterating through individual files in a FileSeries, and has nothing to do with having an integer in the field-name :)

If you wish to iterate through individual files, I suggest storing them as a FileSet. This will allow you to iterate through individual files as shown below:

for file in run["train/predicted_images"].list_fileset_files():
    print(file)
    ...

Please let me know if this solution works for your use-case. We will continue to investigate ways to improve FileSeries with iteration capabilities. Thank you! 🙏

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

No branches or pull requests

5 participants