Semantic image compression for AI training datasets
Project description
HELIX SDK
Semantic image compression for AI training. Convert images into compact blueprints containing identity-critical information for regeneration at any resolution.
What's New in 1.0.2
- 🌐 Remote Mode - Use HELIX via API without heavy local dependencies
- 📦 Lightweight Install - Core package now only requires
httpx,numpy,pillow - 🏢 Data Center Ready - Perfect for cloud storage and on-demand materialization
Features
- 10-20x compression - Store blueprints, not pixels
- On-demand materialization - Reconstruct at 256p to 8K from same file
- Infinite variants - Generate augmentation variants per image
- ML-ready loaders - PyTorch-compatible Dataset and DataLoader
- Remote or Local - Use API or run locally with full models
Installation
# Lightweight (Remote Mode - recommended for most users)
pip install helix-sdk
# With local processing (requires Gemini API key)
pip install helix-sdk[local]
# With PyTorch support
pip install helix-sdk[ml]
Quick Start
Remote Mode (Recommended)
from helix_sdk import HelixSDK
# Connect to HELIX API (no local models needed!)
sdk = HelixSDK(base_url="https://api.helix-codec.dev")
# Compress - sends image to API, receives .hlx
result = sdk.compress("image.jpg", "image.hlx")
# Materialize at any resolution
sdk.materialize("image.hlx", "output.png", resolution="4K")
Local Mode
from helix_sdk import HelixSDK
# Use local models (requires pip install helix-sdk[local])
sdk = HelixSDK(mode="local", api_key="your-gemini-key")
sdk.compress("image.jpg", "image.hlx")
sdk.materialize("image.hlx", "output.png", resolution="4K")
ML Training
from helix_sdk import HelixDataset, HelixLoader
# Works with both local and remote mode!
dataset = HelixDataset(
"/data/hlx/",
target_resolution="512p",
base_url="https://api.helix-codec.dev" # Optional: use API
)
loader = HelixLoader(dataset, batch_size=64, num_workers=4)
for batch in loader:
model.train_step(batch)
API Reference
HelixSDK
HelixSDK(
api_key=None, # Gemini API key (for local mode)
base_url=None, # HELIX API URL (enables remote mode)
mode="auto", # "auto", "local", or "remote"
default_resolution="1080p"
)
| Method | Description |
|---|---|
compress(input, output) |
Compress image to HLX |
materialize(input, output, resolution) |
Reconstruct from HLX |
compress_directory(in_dir, out_dir) |
Batch compression |
get_info(hlx_path) |
Get HLX metadata |
HelixDataset
HelixDataset(
path="/data/hlx/",
target_resolution="512p",
enable_variants=True,
cache_materializations=True,
base_url=None, # Optional: enable remote mode
api_key=None
)
BatchCompressor
from helix_sdk import BatchCompressor
compressor = BatchCompressor(workers=8)
stats = compressor.compress_directory("/images/", "/hlx/")
CLI
helix compress image.jpg
helix materialize image.hlx -r 4K
helix batch /images/ /output/ -w 8
helix info image.hlx
Environment Variables
| Variable | Description |
|---|---|
HELIX_API_URL |
Default API URL for remote mode |
GEMINI_API_KEY |
Gemini API key for local mode |
Benchmarks
| Metric | Value |
|---|---|
| Compression Ratio | 10-20x |
| Identity Match (SSIM) | 98.7% |
| Materialization Time | ~3s |
Requirements
- Python >= 3.10
- For local mode: Gemini API key (
GEMINI_API_KEY) - For remote mode: HELIX API access (
HELIX_API_URL)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
helix_sdk-1.0.3.tar.gz
(100.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
helix_sdk-1.0.3-py3-none-any.whl
(106.6 kB
view details)
File details
Details for the file helix_sdk-1.0.3.tar.gz.
File metadata
- Download URL: helix_sdk-1.0.3.tar.gz
- Upload date:
- Size: 100.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 |
9413bdf66beceaee15f0b2d9da0a74e94cba9ac8acd461b331957e65b3a98049
|
|
| MD5 |
a3c0ae30995b1086d66b1b7fa35e7a14
|
|
| BLAKE2b-256 |
9cb9fc901391f3b15fb0374e5609533900d47f5c36c0ce62edcce8a89412481f
|
File details
Details for the file helix_sdk-1.0.3-py3-none-any.whl.
File metadata
- Download URL: helix_sdk-1.0.3-py3-none-any.whl
- Upload date:
- Size: 106.6 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 |
b4e93ce74665e67445dab1df841aafc46564a906fc7a520285324976507b6006
|
|
| MD5 |
74cc757c77b7b5635d9024e8535d2017
|
|
| BLAKE2b-256 |
6b55963c04fe9a2c4431d10b14c193896c2a8b9896aed35cd40b6e9395c47330
|