wjn922 / ReferFormer

[CVPR2022] Official Implementation of ReferFormer
Apache License 2.0
322 stars 25 forks source link

WHY is there always NotImplementedError: Cuda is not availabel Error! #54

Closed Shuaicong97 closed 3 months ago

Shuaicong97 commented 5 months ago

`

Name Version Build Channel

_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
av 10.0.0 pypi_0 pypi ca-certificates 2024.3.11 h06a4308_0
certifi 2022.12.7 py37h06a4308_0
charset-normalizer 3.3.2 pypi_0 pypi cycler 0.11.0 pypi_0 pypi cython 3.0.10 pypi_0 pypi einops 0.6.1 pypi_0 pypi filelock 3.12.2 pypi_0 pypi fonttools 4.38.0 pypi_0 pypi fsspec 2023.1.0 pypi_0 pypi fvcore 0.1.6 pypi_0 pypi h5py 3.8.0 pypi_0 pypi huggingface-hub 0.16.4 pypi_0 pypi idna 3.7 pypi_0 pypi imageio 2.31.2 pypi_0 pypi imgaug 0.4.0 pypi_0 pypi importlib-metadata 6.7.0 pypi_0 pypi iopath 0.1.10 pypi_0 pypi kiwisolver 1.4.5 pypi_0 pypi ld_impl_linux-64 2.38 h1181459_1
libffi 3.4.4 h6a678d5_0
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libstdcxx-ng 11.2.0 h1234567_1
matplotlib 3.5.3 pypi_0 pypi ncurses 6.4 h6a678d5_0
networkx 2.6.3 pypi_0 pypi numpy 1.21.6 pypi_0 pypi opencv-python 4.9.0.80 pypi_0 pypi openssl 1.1.1w h7f8727e_0
packaging 24.0 pypi_0 pypi pandas 1.3.5 pypi_0 pypi pillow 9.5.0 pypi_0 pypi pip 22.3.1 py37h06a4308_0
portalocker 2.7.0 pypi_0 pypi pycocotools 2.0 pypi_0 pypi pyparsing 3.1.2 pypi_0 pypi python 3.7.16 h7a1cb2a_0
python-dateutil 2.9.0.post0 pypi_0 pypi pytz 2024.1 pypi_0 pypi pywavelets 1.3.0 pypi_0 pypi pyyaml 6.0.1 pypi_0 pypi readline 8.2 h5eee18b_0
regex 2024.4.16 pypi_0 pypi requests 2.31.0 pypi_0 pypi safetensors 0.4.3 pypi_0 pypi scikit-image 0.19.3 pypi_0 pypi scipy 1.7.3 pypi_0 pypi setuptools 65.6.3 py37h06a4308_0
shapely 2.0.4 pypi_0 pypi six 1.16.0 pypi_0 pypi sqlite 3.41.2 h5eee18b_0
tabulate 0.9.0 pypi_0 pypi termcolor 2.3.0 pypi_0 pypi tifffile 2021.11.2 pypi_0 pypi timm 0.9.12 pypi_0 pypi tk 8.6.12 h1ccaba5_0
tokenizers 0.13.3 pypi_0 pypi torch 1.8.1+cu111 pypi_0 pypi torchaudio 0.8.1 pypi_0 pypi torchvision 0.9.1+cu111 pypi_0 pypi tqdm 4.66.2 pypi_0 pypi transformers 4.30.2 pypi_0 pypi typing-extensions 4.7.1 pypi_0 pypi urllib3 2.0.7 pypi_0 pypi wheel 0.38.4 py37h06a4308_0
xz 5.4.6 h5eee18b_0
yacs 0.1.8 pypi_0 pypi zipp 3.15.0 pypi_0 pypi zlib 1.2.13 h5eee18b_0 `

Above is my conda environment and I used that for build the operator. I used pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html to install pytorch. This works on the remote Server. Before success, I also met this error a few times. Now I need to work on another server, but the error shows again! Sad and desperate...

image

I also tried on pytorch with cu11.3, it always solves the environment so I have to interrupt.

How to smoothly avoid this Cuda is not available issue?