You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FlashGMM is a fast implementation of Gaussian Mixture Model (GMM) based image compression in PyTorch. The codes are based on the [CompressAI](https://github.com/InterDigitalInc/CompressAI/) library.
8
+
9
+
# Installation
10
+
We tested FlashGMM on Python 3.10, Pytorch 2.2.2, CUDA 12.1 and GCC 11.4.0.
11
+
12
+
First, clone the repository and install the required packages:
13
+
14
+
```bash
15
+
git clone *the repository URL*
16
+
cd FlashGMM
17
+
pip install -r requirements.txt
18
+
```
19
+
20
+
To compile the C++ extensions, run:
21
+
22
+
```bash
23
+
python setup.py develop
24
+
```
25
+
26
+
# Usage
27
+
The core implementation of our FlashGMM is in `compressai/cpp_exts/rans/rans_interface.cpp` and `compressai/entropy_models/entropy_models.py`. The model code used in the experiment can be found in `compressai.models.ckbd_gmm.Cheng2020AnchorCheckerboardGMMv2`.
28
+
29
+
To train the model, you can use the provided training script. For example:
0 commit comments