This is Stage 1 of (*Link).
Run image-to-math.py to convert an image into a mathematical description; using a sum of low-order polynomials and sinusoids on tiled patches, then reconstructing it back from that math.
pip install -r requirements.txtpip install -r requirements-gpu.txtpython image-to-math.py input.jpg --method analytic
python image-to-math.py input.jpg --method nn
python image-to-math.py input.jpg --method bothpython math-to-image.py --analytic debug/coeffs.json
python math-to-image.py --nn debug/nn_weights.npzpip install streamlit numpy pillow matplotlib
streamlit run viewer.py