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

No detailed description of the API compress.ans found #271

Open
GraceZhuuu opened this issue Feb 23, 2024 · 3 comments
Open

No detailed description of the API compress.ans found #271

GraceZhuuu opened this issue Feb 23, 2024 · 3 comments

Comments

@GraceZhuuu
Copy link

Documentation

There are no parameters or source in documentation(https://interdigitalinc.github.io/CompressAI/ans.html)
Where I can find that, 3Q.

@WenBingo
Copy link

Documentation

There are no parameters or source in documentation(https://interdigitalinc.github.io/CompressAI/ans.html) Where I can find that, 3Q.

Hello, I would like to ask you a question about the installation of compressai “Successfully installed compressai-1.2.4.dev0” . I successfully installed cmpressai, but I got the following error when importing:

import compressai
Traceback (most recent call last):
File "", line 1, in
File "F:\compressai\compressai_init_.py", line 30, in
from compressai import (
File "F:\compressai\compressai\latent_codecs_init_.py", line 38, in
from .rasterscan import RasterScanLatentCodec
File "F:\compressai\compressai\latent_codecs\rasterscan.py", line 38, in
from compressai.ans import BufferedRansEncoder, RansDecoder
ImportError: DLL load failed while importing ans: 找不到指定的程序。

@GraceZhuuu
Copy link
Author

GraceZhuuu commented Feb 27, 2024

Documentation

There are no parameters or source in documentation(https://interdigitalinc.github.io/CompressAI/ans.html) Where I can find that, 3Q.

Hello, I would like to ask you a question about the installation of compressai “Successfully installed compressai-1.2.4.dev0” . I successfully installed cmpressai, but I got the following error when importing:

import compressai
Traceback (most recent call last):
File "", line 1, in
File "F:\compressai\compressai__init__.py", line 30, in
from compressai import (
File "F:\compressai\compressai\latent_codecs__init__.py", line 38, in
from .rasterscan import RasterScanLatentCodec
File "F:\compressai\compressai\latent_codecs\rasterscan.py", line 38, in
from compressai.ans import BufferedRansEncoder, RansDecoder
ImportError: DLL load failed while importing ans: 找不到指定的程序。

If you have unrelated questions, please open a new issue to ask.
Sorry that can't help you.

@YodaEmbedding
Copy link
Contributor

YodaEmbedding commented Feb 27, 2024

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

3 participants