Error and Solve (50) 썸네일형 리스트형 [에러 해결] RuntimeError: The detected CUDA version mismatches the version that was used to compile pytorch / pytorch-cuda=11.7 -c pytorch RuntimeError: The detected CUDA version mismatches the version that was used to compile pytorch RuntimeError: The detected CUDA version (11.7) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions. RuntimeError: The detected CUDA version (11.7) mismatches the version that was used to compile PyTorch (12.1). Please make sure to.. [에러 해결] dinov2 설치할 때 Xformer package install error / --extra-indexl-url 제대로 지정 xformers 관련 패키지 설치 때 에러 ResolvePackageNotFound: - xformers::xformers=0.0.18 package not found 등 xformers를 설치할 때 에러가 났다 --extra-indexl-url를 제대로 지정 pip install --extra-index-url https://download.pytorch.org/whl/cu117 --extra-index-url https://pypi.nvidia.com git+https://github.com/facebookresearch/dinov2 pip install --extra-index-url https://download.pytorch.org/whl/cu117 --extra-index-ur.. [에러 해결] UserWarning: None of the inputs have requires_grad=True. Gradients will be None / warnings.filterwarnings UserWarning: None of the inputs have requires_grad=True. Gradients will be None UserWarning: None of the inputs have requires_grad=True. Gradients will be None위의 경고문이 너무 자주 나타나서 끄고 싶었다. 해결: import warnings; warnings.filterwarnings import warningswarnings.filterwarnings("ignore", category=UserWarning)import warningswarnings.filterwarnings("ignore", category=UserWarning) 위의 코드를 코드 맨 윗부분에 넣으면 된.. [에러 해결] NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported. / pip install datasets==2.20.0 NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported. 1. NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported datasets.load_dataset을 할 때 local cache를 못 쓴다는 에러가 생겼다. 해결: datasets package version upgrade 원래 datasets 패키지 버전은 2.11.0이었다. 이 datasets 버전에서는 저런 캐시 방식을 지원하지 않았던 것이다. 문제를 해결하기 위해 datasets를 최근 버전으로 다시 재설치하였다. pip inst.. [에러 해결] Cannot import name 'PartialState' from 'accelerate / pip install accelerate==0.33.0 transformers==4.43.3 Cannot import name 'PartialState' from 'accelerate 1. cannot import name 'PartialState' from 'accelerate Accelerate 을 쓸 때 initialize 초기화를 위해서 PartialState()를 써야 했다. 하지만 위와 같이 PartialState를 인식 못하는 에러가 발생했다. 실행했던 코드는 from accelerate import PartialStatestate = PartialState() 위와 같다 해결 : accelerate과 transformers 재설치 이를 해결하기 위해 accelerate와 transformers 패키지를 여러 버전으로 재설치를 진행해보았고 돌아가는 버전을 발견했다. a.. 특정 경로에서 키워드로 관련 파일 찾기 특정 경로에서 키워드로 관련 파일 찾기 특정 경로에서 키워드로 관련 파일 찾기 1. 파이썬 파일에서 crop 키워드가 있는 파일 찾기 grep --include=\*.{py} -Rnw './' -e 'crop'grep --include=\*.{py} -Rnw './' -e 'crop' 2. 파이썬이나 C 파일에서 back에 관련된 파일 찾기 grep --include=\*.{py, c} -Rnw './' -e 'back'grep --include=\*.{py, c} -Rnw './' -e 'back' [에러 해결] NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported. / datasets==2.16 버전으로 재설치 NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported. NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported. package dataset 모듈의 load_dataset 함수에서 "json"을 이용해서 불러올 때 위와 같이 type을 적용하는 변수가 적용이 안되는 문제가 발생했다 해결 : datasets 버전에 맞게 재설치 해결하기 위해서는 datasets를 재설치하면 된다. pip uninstall datasets pip install datasets==2.16pip uninstall .. [에러 해결] jupyter notebook에서 CUDA VISIBLE DEVICES 설정하는 방법 import osos.environ["CUDA_VISIBLE_DEVICES"] = "0"import osos.environ["CUDA_VISIBLE_DEVICES"] = "0" import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" CUDA_VISIBLE_DEVICES를 os environ 함수로 지정해주면 된다. [에러 해결] ImportError: libGL.so.1: cannot open shared object file: No such file or directory / 1.ImportError: libGL.so.1: cannot open shared object file: No such file or directory 에러 발생 opencv-python를 설치 후 import cv2에서 문제가 생겼다 ImportError: libGL.so.1: cannot open shared object file: No such file or directory ImportError: libGL.so.1: cannot open shared object file: No such file or directory libGL 에러가 생겼다. 2. 해결방법 패키지 추가 설치 패키지를 추가로 설치하면 해결 할 수 있다. 1. Docker file 을 사용할 때 RUN apt.. [에러 원인] Requests JsonDecodeError / API 사이트 다운 문제 1. 오류 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) API를 활용하는 코드 실행 도중에 JSONDecodeError가 나타났다. 2. 해결 알고보니 API를 불러오는 사이트가 다운되어 있어서 아무것도 return이 안되어서 json decode error가 났던 것이다. .. 이전 1 2 3 4 5 다음