MCTS Image Optimizer (MIO): Search-Based Image Compression with Fast SSIM Constraints
Authors/Creators
Description
MCTS Image Optimizer(MIO)は、圧縮を固定プリセットではなく探索問題として扱う、導入しやすい画像最適化システムです。知覚品質(高速SSIM近似)と実行時間という制約下で、モンテカルロ木探索(MCTS)
を用いてコーデックと前処理パイプラインを探索し、画像の視覚的な一貫性を維持しながら相対的なサイズ削減を最大化することを目指します。
重要なアイデア
-
パイプライン(アクション)の検索:コーデック(PNG/JPEG/WebP/AVIF* / WebP-lossless)+ 品質 + サイズ変更 + フィルター + JPEG サブサンプリング + メタデータ除去
-
高速 SSIM 近似:オプションの 2×2 タイリングによる縮小された輝度 SSIM (スクリーンショット/テキストのような画像では保守的)
-
低コストの画像プロファイリング:アルファ/エッジ密度/彩度/パレット推定により探索空間を絞り込み、安全性ヒューリスティックスを適用する
-
堅牢なデプロイメント:候補ごとのタイムアウト、キャッシュ、およびデフォルトで「元の出力よりも大きい」出力を回避するための保守的なガード
実践的なメモ
-
一部の画像はすでに最適化されています。このような場合には、縮小率は 0% になることがあります(システムは元の画像を返します)。
-
PNG スクリーンショットの場合、WebP ロスレス候補を使用すると、多くの場合、正確なピクセルを維持しながら大幅な削減を実現できます。
ウェブデモ
ソースコード
DOI(このバージョン)
-
10.5281/zenodo.18464299
接触
-
X(ツイッター): https://x.com/nagisa7654321
免責事項:
このプロジェクトは現状のまま提供され、保証はありません。機密情報やセンシティブな画像を公開サービスにアップロードしないでください。
(AVIFのサポートは、ランタイム環境とオプションのPillowプラグインに依存します。)
Files
zenodo-mio-submission-pack_filled_with-version-doi.zip
Files
(9.0 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:2dd8f948b16042831667556d74e83925
|
9.0 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Other: https://github.com/Eiryou/mcts-image-optimizer (URL)
- Is supplemented by
- Other: https://mcts-image-optimizer.onrender.com/ (URL)
- Other: https://x.com/nagisa7654321 (URL)
Dates
- Issued
-
2026-02-03Initial public release on Zenodo (v0.1.0).
Software
- Repository URL
- https://github.com/Eiryou/mcts-image-optimizer
- Programming language
- Python
- Development Status
- Active
References
- Kocsis, L., & Szepesvári, C. (2006). Bandit Based Monte-Carlo Planning. ECML 2006. https://doi.org/10.1007/11871842_29 Browne, C. B., et al. (2012). A Survey of Monte Carlo Tree Search Methods. IEEE TCIAIG. https://doi.org/10.1109/TCIAIG.2012.2186810 Wang, Z., Bovik, A. C., Sheikh, H. R., & Simoncelli, E. P. (2004). Image quality assessment: From error visibility to structural similarity. IEEE TIP. https://doi.org/10.1109/TIP.2003.819861 van der Walt, S., et al. (2011). The NumPy Array: A Structure for Efficient Numerical Computation. Computing in Science & Engineering. https://doi.org/10.1109/MCSE.2011.37 van der Walt, S., et al. (2014). scikit-image: image processing in Python. PeerJ. https://doi.org/10.7717/peerj.453 Pillow contributors. Pillow: Python Imaging Library (software). Streamlit Inc. Streamlit (software). WebP specification (specification). AVIF/AV1 Image File Format (specification).