PICO is a lossy image compression algorithm that adapts compression to user behavior, optimizing reconstructions to be useful for downstream tasks instead of preserving visual appearance.
- Clone
pico
into your home directory~
- Setup an Anaconda virtual environment with
conda create -n picoenv python=3.6
- Install dependencies with
pip install -r requirements-{a,b}.txt
(a
for mnist and carracing,b
for celeba and lcars) - Replace
NVAE/model.py
withdeps/NVAE/model.py
- Replace
gym/envs/box2d/car_{dynamics,racing}.py
withdeps/box2d/car_{dynamics,racing}.py
- Replace
gym/envs/classic_control/rendering.py
withdeps/classic_control/rendering.py
- Replace
stylegan2/projector.py
withdeps/stylegan2/projector.py
- Install the
pico
package withpython setup.py install
- Jupyter notebooks in
pico/notebooks
provide an entry-point to the code base
If you find this software useful in your work, we kindly request that you cite the following paper:
@article{pico2021,
title={Pragmatic Image Compression for Human-in-the-Loop Decision-Making},
author={Reddy, Siddharth and Levine, Sergey and Dragan, Anca D.},
journal={arXiv preprint arXiv:2108.04219},
year={2021}
}