Programming/errors 8

[Error] grpcio-tools ~ protobuf ~ tensorboard, tb-nightly compatibility : 호환성 맞추기

내 가상환경에 설치된 라이브러리 - tensorboard 2.11.0 - tb-nightly 2.12.0a20221206 [Error] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorboard 2.11.0 requires protobuf=3.9.2, but you have protobuf 4.22.1 which is incompatible. tb-nightly 2.12.0a20221206 requires protobuf=3.9.2,..

Programming/errors 2023.03.15

cv2.error: OpenCV(4.5.4) !_img.empty() in function 'imwrite

cv2.error: OpenCV(4.5.4) /tmp/pip-req-build-9vck9bv0/opencv/modules/imgcodecs/src/loadsave.cpp:799: error: (-215:Assertion failed) !_img.empty() in function 'imwrite 원인 / 해결방법 https://somjang.tistory.com/entry/Python-OpenCV-error-215Assertion-failed-srcempty-in-imwrite-%ED%95%B4%EA%B2%B0%EB%B0%A9%EB%B2%95 [Python] OpenCV error: (-215:Assertion failed) !_src.empty() in imwrite 해결방법 OpenCV를 활용하여 이..

Programming/errors 2023.02.03

파이썬(python) OpenCV(4.5.4) :-1: error: (-5:Bad argument) in function 'rectangle'

opencv 라이브러리로 bounding box 좌표를 입력하여, box를 그려주는 코드를 작성하다가 해당 에러가 났다. > Overload resolution failed: > - Can't parse 'pt1'. Sequence item with index 0 has a wrong type > - Can't parse 'pt1'. Sequence item with index 0 has a wrong type > - Can't parse 'rec'. Expected sequence length 4, got 2 > - Can't parse 'rec'. Expected sequence length 4, got 2 항상 깜빡하던 것이 이유였다. rectangle 함수의 좌표에는 int 정수형 값만 입력해야한..

Programming/errors 2023.01.30

[CUDA error] out of memory 문제 해결 방법

https://discuss.pytorch.kr/t/cuda-out-of-memory/55/3 cuda out of memory 오류 해결 원본이라고 생각되는 GitHub - hanyoseob/youtube-cnn-002-pytorch-unet: [CNN PROGRAMMING] 002 - UNET 를 돌려보니 제 머신에서 batch 4에서 약 6G, batch 1에서 4.3G 정도 사용되네요. 올려주신 코드도 4.3G 정도네요. CUDA 버 discuss.pytorch.kr 1. 발생 문제 - CUDA out of memory 에러메시지 출력 2. 상황 - train model이 한번 잘 돌아가고 같은 runtime에 한번 더 train을 돌리면 에러가 발생하면서 GPU에 추가 process가 생기는 것..

Programming/errors 2022.11.10

[CUDA error] : CUBLAS_STATUS_ALLOC_FAILED

CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)` (jupyter lab 환경에서 작업) 구글링을 통해 얻은 해결방법 1) 배치사이즈를 줄이고, 코드를 다시 restart시키면 작동하는 것을 확인했다. - 하지만 기존에 잘 돌아가던 코드에서 갑자기 저런 에러가 발생하여 당황스럽다... 2) 배치사이즈를 줄여도 해결되지 않는 경우도 있다. (사실 저 에러는 배치사이즈와 관련이 없다는 사실) https://stackoverflow.com/questions/61473330/cuda-error-cublas-status-alloc-failed-when-calling-cublascreatehandle

Programming/errors 2022.11.10

TqdmWarning: IProgress not found. 에러 해결방법 (Anaconda, Jupyter Lab / Notebook)

Conda에 Jupyter 조합을 쓰는사람에게 자주 발생하는 에러라고 한다. [해결 방법] 1) Jupyter lab / notebook 종료한 상태에서 Terminal or Anaconda Prompt 접속 2) (base)상태에서 아래의 커맨드로 jupyterlab_widgets 설치 3) (base)상태에서 아래의 두번째 커맨드로 ipywidgets 설치 - your_environment 부분에 본인의 가상환경 이름을 넣기! conda install -n base -c conda-forge jupyterlab_widgets conda install -n your_environment -c conda-forge ipywidgets 4) 터미널 종료하고 다시 재실행하면 에러가 발생하지 않음

Programming/errors 2022.10.21

Jupyter lab 실행 시, 에러(Error) 설명 - NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.

# NumExpr User Guide - Threadpool Configuration https://numexpr.readthedocs.io/projects/NumExpr3/en/latest/user_guide.html#threadpool-configuration NumExpr 2.0 User Guide — numexpr 2.6.3.dev0 documentation The numexpr package supplies routines for the fast evaluation of array expressions elementwise by using a vector-based virtual machine. Enabling Intel VML support Starting from release 1.2 on,..

Programming/errors 2022.09.07