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

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

Open GraceZhuuu opened 6 months ago

GraceZhuuu commented 6 months ago

Documentation

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

WenBingo commented 6 months ago

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 commented 6 months ago

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\compressaiinit.py", line 30, in from compressai import ( File "F:\compressai\compressai\latent_codecsinit.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 commented 6 months ago

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