CompressAI icon indicating copy to clipboard operation
CompressAI copied to clipboard

from compressai.ans import BufferedRansEncoder, RansDecoder

Open HKLCXQ opened this issue 9 months ago • 1 comments

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

HKLCXQ avatar May 07 '24 06:05 HKLCXQ

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) {
    ...
}

YodaEmbedding avatar May 07 '24 08:05 YodaEmbedding