Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from compressai.ans import BufferedRansEncoder, RansDecoder #286

Open
HKLCXQ opened this issue May 7, 2024 · 1 comment
Open

from compressai.ans import BufferedRansEncoder, RansDecoder #286

HKLCXQ opened this issue May 7, 2024 · 1 comment

Comments

@HKLCXQ
Copy link

HKLCXQ commented May 7, 2024

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

@YodaEmbedding
Copy link
Contributor

YodaEmbedding commented May 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants