목록회고, 기록/에러 해결 (8)
기록하는삶
파이썬 2.x에서 주석에 한글 포함 → 한글 제거 혹은 아래 encoding 맨 위에 선언 # -*- coding: utf-8 -*-
pyplot을 이용해 그래프를 그리고 text를 추가할 때, 데이터의 범위(혹은 그래프 축의 범위)와 text를 적는 위치를 포함하지 않아 발생한 오류로, 그래프 축의 범위를 재설정해 해결했다.
https://github.com/python-poetry/poetry/issues/5000 ``poetry new`` fails when creating a new system environment · Issue #5000 · python-poetry/poetry I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate. If an exception occurs when executing a command, I executed it again in debug mo... github.com poetry init을 실행하던 중 발생한 오류다. 찾아보니 win..
https://python-poetry.org/docs/ Introduction | Documentation | Poetry - Python dependency management and packaging made easy Using alternative installation methods will make Poetry always use the Python version for which it has been installed to create virtualenvs. So, you will need to install Poetry for each Python version you want to use and switch between them. python-poetry.org 공식 문서의 방법으로 설..
https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo ImportError: libGL.so.1: cannot open shared object file: No such file or directory I am trying to run cv2, but when I try to import it, I get the following error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory The suggested solution online..
모델 train 과정에서 발생했다. input에 nan이 포함돼있거나, loss function이 binary cross entropy인데 target으로 설정된 값이 [0,1] 외의 값이 존재하는 등의 문제가 있을 수 있다. 나는 전자의 경우임을 확인, nan을 제거해 해결했다.
CPU가 감당 못하는 너무 큰 메모리를 할당하려고 할 때 발생하는 에러다. 나는 batch_size 256으로 학습시킨 모델을 불러와 inference를 시도할 때 발생했다. 비슷한 경우를 찾아본 결과 대부분 모델 자체의 batch_size를 작게 함으로써 해결할 수 있는 것으로 보인다. 나 역시 64로 batch를 줄여 해결했다.
프로그래머스에서만 문제를 풀 때 깃허브 레포지토리를 만들어 놓고, 이후에 백준으로 옮겨가면서 레포 이름을 바꿔주었다. 매번 블로그에만 업로드 하다가 오랜만에 깃허브에 commit 하려 하니 아래의 문제를 만났다. error: remote origin already exists. 일단 레포 주소가 바뀌었으니, 아래를 통해 origin을 제거하고 다시 새롭게 연결해주어야 했다. git remote rm origin git remote add origin "https://github.com/alsrb0607/coding_test_examples" 이때 주소를 브라우저에서 그대로 복붙하게 되면 "fatal: protocol ''https' is not supported"를 만날 수 있으니 직접 입력해줘야 할 수..