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

Need File.from_uri() method #300

Open
volkfox opened this issue Aug 14, 2024 · 0 comments
Open

Need File.from_uri() method #300

volkfox opened this issue Aug 14, 2024 · 0 comments
Labels
enhancement New feature or request priority-p2

Comments

@volkfox
Copy link
Contributor

volkfox commented Aug 14, 2024

Description

There are multiple situations in datasets calling for introducing a new file object.

For one example, reading a dataset like Google OpenImage produces a URI column which needs conversion to File.
For another example, extracting a bounding box from an image can be saved locally and added to dataset.

In all these cases, a dataset needs a new File/ImageFile/TextFile object created from URI, and a method to automate it, similar to:

TextFile.from_uri(uri, resolve=True)

where URI can be any supported locator (local, cloud, https), and resolve argument determines whether the URI is tested and more information gathered (e.g. filesize).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-p2
Projects
None yet
Development

No branches or pull requests

1 participant