[OpenCV] ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
·
Error Note
- 전체 에러 문구 ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory => docker에서 pip 로 opencv를 설치했을 때 발생하는 에러입니다. - 해결 방법 apt-get install libglib2.0-0 libglib2.0-0 를 추가로 설치해주면 됩니다.
[OpenCV] ImportError: libGL.so.1: cannot open shared object file: No such file or directory
·
Error Note
- 전체 에러 문구 ImportError: libGL.so.1: cannot open shared object file: No such file or directory - 해결 방법 apt-get install libgl1-mesa-glx libgl1-mesa-glx 를 추가로 설치해주면 됩니다.
[Colab] Colab에 ipynb 파일 import 하기
·
Error Note
colab에서 작성한 코드는 ipynb 파일로 저장됩니다. 그렇기 때문에, ipynb 파일을 그대로 "import 파일이름" 하면 불러오지 못합니다. ​ colab에서 ipynb 파일을 import하려면 아래처럼 해주면 됩니다. !pip install import_ipynb import import_ipynb import 파일이름 # 또는 from 파일이름 import 클래스이름 먼저 import_ipynb를 설치 합니다. 그리고 코드 상에 "import import_ipynb" 를 해주고 원하는 ipynb 파일을 import 하면 됩니다.
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace ....
·
Error Note
- 전체 에러 문구 RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [128, 32, 64, 64]], which is output 0 of ReluBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True). 신경망 모델을 학습할 때, 손..