Serialization and compression#
JSON serialization of trained bases (byte-compatible with the Julia package) and top-k lossy compression of images in a learned basis.
Serialization (JSON) and lossy compression of trained bases.
Contents
Write basis to a JSON file. |
|
Read basis from a JSON file. |
|
Serialize a QFTBasis to a plain Python dict (JSON-ready). |
|
Inverse of |
|
SHA256 of a canonical string form, matching Julia's |
|
Format a Python float the way Julia's |
|
Compress |
|
Compress keeping exactly |
|
Reconstruct real-valued image from a compressed representation. |
|
Sparse frequency-domain representation of an image. |
|
Summary of compression ratio + kept coefficients. |
|
Write a |
|
Read a |
|
Convert to the JSON-ready dict form (schema version |
|
Inverse of |