본문 바로가기

반응형

error모음

(25)
ModuleNotFoundError: No module named 'progress' 해결 pip install progress
ModuleNotFoundError: No module named 'cv2' 해결 conda install -c conda-forge opencv or pip install opencv-python
fatal error: TH/TH.h: No such file or directory 해결 # clone Torch repository git clone https://github.com/torch/torch7 mkdir th_build cd th_build # configure TH build cmake ../torch7/lib/TH # compile library make # install shared library and header files make install 진짜 .. 문제 날때 마다 왜인지좀 누가 알려줬으면 좋겠다.. 이것저것 찾아보다가 그냥 직접 빌드했다. 그러니까 이번에는 fatal error: THC/THC.h: No such file or directory 이 error가 나는데 이거 해볼라고 진짜 왠만한 삽질은 다해보다가 결국에 11버전에서는 라이브러리가 바뀌었단..
CUDA_cublas_device_LIBRARY (ADVANCED) linked by target "THC" in directory /root/torch/extra/cutorch/lib/THC 해결 $ cd ~/torch $ rm -fr cmake/3.6/Modules/FindCUDA* torch/extra/cutorch 에서 아래 파일을 수정해줘야함 /lib/THC/THCAtomics.cuh 에디터를 사용해서 해당 코드 추가 @@ -94,6 +94,7 @@ static inline __device__ void atomicAdd(long *address, long val) { } #ifdef CUDA_HALF_TENSOR +#if !(__CUDA_ARCH__ >= 700 || !defined(__CUDA_ARCH__) ) static inline __device__ void atomicAdd(half *address, half val) { unsigned int * address_as_ui =..
CMake error with "CUDA_cublas_device_LIBRARY" 해결 cmake version update 3.10.2 -> 3.12.1 시도중 cmake 설치 방법 기존 cmake 제거 후 $ wget http://www.cmake.org/files/v3.12/cmake-3.12.1.tar.gz $ tar -xvzf cmake-3.12.1.tar.gz $ cd cmake-3.12.1/ $ ./configure $ make $ sudo make install $ sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
E: Package 'python-software-properties' has no installation candidate 문제상황 fatal error: 'TH/TH.h' file not found 발생 - DCNv2 make ( docker 환경 ) 시 발생 http://torch.ch/docs/getting-started.html#_ Torch | Getting started with Torch Torch is a scientific computing framework for LuaJIT. torch.ch bulid를 통해 해결하려고 시도 위와 같은 error 발생 해결 replacing the line sudo apt-get install -y python-software-properties by sudo apt-get install -y software-properties-common in install-deps
E: Package 'git' has no installation candidate 문제상황 docker container에서 apt-get install git 실행 해결 apt-get update 후 실행
cuda 11.2 에 맞는 pytorch 가장 낮은 버전 pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html 11.2랑 matching되는 게 없어서.. 11.0부분으로 가져와서 쓰고있음.