Caching system for scaling of synthetic data generators using MongoDB
Project description
Wirehead
Caching system for scaling of synthetic data generators using MongoDB.
Features
- Cache and efficiently serve synthetic data from generators
- Scalable architecture using MongoDB for storage
- Support for numpy and torch tensors
- Configurable caching behavior
Quick Start
# Generator example
import numpy as np
from wirehead import WireheadGenerator
def create_generator():
while True:
img = np.random.rand(256,256,256)
lab = np.random.rand(256,256,256)
yield (img, lab)
brain_generator = create_generator()
wirehead_runtime = WireheadGenerator(
generator = brain_generator,
config_path = "config.yaml"
)
wirehead_runtime.run_generator()
# Dataset example
from wirehead import MongoheadDataset
dataset = MongoheadDataset(config_path = "config.yaml")
data = dataset[[0]]
MongoDB Setup Required
Requires a running MongoDB instance.
Documentation
For full documentation and examples, visit: https://github.com/neuroneural/wirehead
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wirehead-0.9.3.tar.gz
(15.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
wirehead-0.9.3-py3-none-any.whl
(14.3 kB
view details)
File details
Details for the file wirehead-0.9.3.tar.gz.
File metadata
- Download URL: wirehead-0.9.3.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d82c0a2eb02d19440840b21c5d4848b3eed2e9a3f53beafc19c0a61811dde71b
|
|
| MD5 |
9c105a13949331bb291b01705697f314
|
|
| BLAKE2b-256 |
5d9d83ca6e2d716bdff174fc7b7b058d064e03d68d6ca05b0656c34afca307ad
|
File details
Details for the file wirehead-0.9.3-py3-none-any.whl.
File metadata
- Download URL: wirehead-0.9.3-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31ec908e83d2b0b47f3e7005a808750c452e279ca09ba223dad637128f6686b3
|
|
| MD5 |
7254f4a9e98537b4f773c1633085407f
|
|
| BLAKE2b-256 |
9a6549c7d547e4d1f6984339c4394c52e92a04dd1217232a71a0dfedb9f26cf4
|