Closed jxchen01 closed 2 years ago
Hi. This seems to relate to https://github.com/InterDigitalInc/CompressAI/issues/26. Please let me know if that fixes your issue
Hi. This seems to relate to #26. Please let me know if that fixes your issue
cd compressai pip install -e .
rebuild you compressAI package with correct g++ version. 9.5 works for me.
rebuild you compressAI package with correct g++ version. 9.5 works for me.
How do I choose the correct g++ version when I rebuild my compressAI package?
Bug
After training a model, when I try to update the model by
python -m compressai.utils.update_model --architecture mtb2018 checkpoint_best_loss.pth.tar
, i got the following error:Traceback (most recent call last): File "/home/nodeadmin/anaconda3/envs/compress/lib/python3.8/runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/nodeadmin/anaconda3/envs/compress/lib/python3.8/runpy.py", line 111, in _get_module_details import(pkg_name) File "/home/nodeadmin/research/tcell/compressai/compressai/init.py", line 15, in
from compressai import datasets, entropy_models, layers, models, ops
File "/home/nodeadmin/research/tcell/compressai/compressai/entropy_models/init.py", line 15, in
from .entropy_models import EntropyBottleneck, EntropyModel, GaussianConditional
File "/home/nodeadmin/research/tcell/compressai/compressai/entropy_models/entropy_models.py", line 13, in
from compressai._CXX import pmf_to_quantized_cdf as _pmf_to_quantized_cdf
ModuleNotFoundError: No module named 'compressai._CXX'
To Reproduce
Steps to reproduce the behavior:
python -m compressai.utils.update_model --architecture mtb2018 checkpoint_best_loss.pth.tar
Expected behavior
no error
Environment
Please copy and paste the output from
python3 -m torch.utils.collect_env
Collecting environment information... PyTorch version: 1.8.2+cu111 Is debug build: False CUDA used to build PyTorch: 11.1 ROCM used to build PyTorch: N/A
OS: Ubuntu 20.04.3 LTS (x86_64) GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 Clang version: Could not collect CMake version: Could not collect
Python version: 3.8 (64-bit runtime) Is CUDA available: True CUDA runtime version: Could not collect GPU models and configuration: GPU 0: A100-SXM4-40GB GPU 1: A100-SXM4-40GB GPU 2: A100-SXM4-40GB GPU 3: A100-SXM4-40GB GPU 4: A100-SXM4-40GB GPU 5: A100-SXM4-40GB GPU 6: A100-SXM4-40GB GPU 7: A100-SXM4-40GB
Nvidia driver version: 450.142.00 cuDNN version: Could not collect HIP runtime version: N/A MIOpen runtime version: N/A
Versions of relevant libraries: [pip3] numpy==1.21.3 [pip3] pytorch-msssim==0.2.1 [pip3] torch==1.8.2+cu111 [pip3] torchaudio==0.8.2 [pip3] torchvision==0.9.2+cu111 [conda] numpy 1.21.3 pypi_0 pypi [conda] pytorch-msssim 0.2.1 pypi_0 pypi [conda] torch 1.8.2+cu111 pypi_0 pypi [conda] torchaudio 0.8.2 pypi_0 pypi [conda] torchvision 0.9.2+cu111 pypi_0 pypi
All other packages in the environment: