InterDigitalInc / CompressAI

A PyTorch library and evaluation platform for end-to-end compression research
https://interdigitalinc.github.io/CompressAI/
BSD 3-Clause Clear License
1.15k stars 228 forks source link

from compressai.ans import BufferedRansEncoder, RansDecoder #286

Open HKLCXQ opened 4 months ago

HKLCXQ commented 4 months ago

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

YodaEmbedding commented 4 months ago

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