We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In training and otherwise, it should be possible to load images separately (for example) client side, to enable more memory efficient.
Adding ability to download data from DB, and add into that the larger blobs post-hoc - loaded from disk.
Downloader
SuperDuperCursor
QueryDataset
This should be facilitated by #422.
The text was updated successfully, but these errors were encountered:
Currently data is saved like this in DB:
{"_content": { "bytes": b"...", "uri": "...", "encoder": "image" }}
As a configurable option, do:
{"_content": { "local_uri": "file://... OR s3://", "uri": "https://...", "encoder": "image" }}
Still when we perform db.execute(collection.find_one()), we would get data loaded. This is a bit like functionality of EvaDB.
db.execute(collection.find_one())
IDEA is: user experience in either case is just like performing queries, but DB might do this in a hybrid way.
Key modules:
datalayer/base/downloads.py
datalayer/core/documents.py
Currently in Document we see decoding from DB blob. Alternatively, could be a reference.
Document
@classmethod def _decode(cls, r: t.Dict, encoders: t.Dict): if isinstance(r, dict) and '_content' in r: type = encoders[r['_content']['encoder']] try: return type.decode(r['_content']['bytes']) except KeyError: return r elif isinstance(r, list): return [cls._decode(x, encoders) for x in r] elif isinstance(r, dict): for k in r: r[k] = cls._decode(r[k], encoders) return r
Sorry, something went wrong.
No branches or pull requests
Why
In training and otherwise, it should be possible to load images separately (for example) client side, to enable more memory efficient.
How
Adding ability to download data from DB, and add into that the larger blobs post-hoc - loaded from disk.
What
Downloader
adding file saving optionSuperDuperCursor
QueryDataset
This should be facilitated by #422.
The text was updated successfully, but these errors were encountered: