- Today
- Total
목록정리/잡 에러들 (34)
작심삼일
에러 ImportError: cannot import name 'Roboto' from 'fonts.ttf' (/opt/conda/lib/python3.8/site-packages/fonts/ttf/__init__.py) 해결 방법 pip install font-roboto
에러 ImportError: cannot import name 'rank_zero_only' from 'pytorch_lightning.utilities.distributed' (/opt/conda/lib/python3.8/site-packages/pytorch_lightning/utilities/distributed.py) 해결 방법 rank_zero 함수의 위치가 바껴서 그렇다. rank_zero를 import하는 위치를 바꿔주면 된다. from pytorch_lightning.utilities.distributed import rank_zero_only # 위 코드를 아래로 수정 from pytorch_lightning.utilities.rank_zero import rank_zero_only
에러 ModuleNotFoundError: No module named 'git' 해결 방법 pip install gitpython
에러 AttributeError: module 'numpy' has no attribute 'object'. 해결 방법 numpy 1.24.*버전에서 문제가 나는 것으로 짐작하고 있다. 다운그레이드 해주면 해결된다. pip install numpy==1.23.4
에러 ImportError: numpy.core.multiarray failed to import 해결 방법 numpy 버전을 업그레이드 한다. pip install -U numpy 그러면 이렇게 성공적으로 업그레이드 된다. Successfully installed numpy-1.24.2 하지만 난 그랬더니 이런 에러를 또 만났다. AttributeError: module 'numpy' has no attribute 'object'. 그래서 numpy 버전을 다운그레이드 해줬더니 최종적으로 해결됐다. pip install numpy==1.23.4
에러 ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject 해결 방법 numpy 라이브러리를 업데이트하면 된다. pip install --upgrade numpy 또는 pip uninstall numpy pip install numpy
에러 RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. 학습 시키던 중 두번째 epoch에서 저 오류를 만났다. (생고생 ㅜㅜ) 해결 방법 1. 보통은 classification 진행 중 class 수가 맞지 않을 때 발생하는 오류다. 예를 들면 label이 7개일 때 label을 0 ~ 6으로 설정해야하는데 1 ~ 7로 설정이 되어있다거나, labe..