InterDigitalInc / CompressAI

A PyTorch library and evaluation platform for end-to-end compression research

Home Page:https://interdigitalinc.github.io/CompressAI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

from compressai.ans import BufferedRansEncoder, RansDecoder

HKLCXQ opened this issue · comments

Encountered an error from compressai.ans import BufferedRansEncoder, RansDecoder has an error.I don't see this file in the project.

This error occurs because the C++ extensions weren't built/compiled/installed/found. Try installing using the instructions in Readme.md "From source".


P.S. The source code is here:

https://github.com/InterDigitalInc/CompressAI/tree/master/compressai/cpp_exts/rans

Pybind11 binds some of these C++ functions to Python using the definitions found inside:

PYBIND11_MODULE(ans, m) {
    ...
}