전체 글
-
nvidia driver and cuda remove에러 삽질 2024. 2. 13. 11:25
############ nvidia 모듈 쓰는지 확인 lsmod | grep nvidia ############ 사용중이면 kill 하고 다시 rmmod 실행 sudo lsof /dev/nvidia* ############ 종료 됬는지 체크 sudo rmmod nvidia_drm sudo rmmod nvidia_modeset sudo rmmod nvidia_uvm sudo rmmod nvidia ############# nvidia 관련 전부 삭제 sudo apt --purge remove *nvidia* sudo apt autoremove sudo apt autoclean 참고 : https://blog.ju-ing.com/posts/nvidia-uninstall/ https://robot9710.ti..
-
colmap 실행에러 삽질 2023. 11. 22. 18:19
서버에서할 땐 export QT_QPA_PLATFORM=offscreen export DISPLAY=:0 해주고 하기
-
리스트 딥카피Base Line/python 기초 코드 2023. 8. 24. 17:13
이썬 리스트에서 a=[] 이고 tmp=[1,2,3] 라고 할때 그냥 a.append(tmp)랑 a.append(tmp[:]) 라고 한다면 a.append(tmp): 이 경우에는 리스트 a에 tmp 리스트 객체를 추가하는 것입니다. 즉, a 리스트 안에는 하나의 요소로서 tmp 리스트 전체가 들어가게 됩니다. 이후 tmp 리스트가 변경되면 a 리스트에 추가된 요소도 함께 변경될 수 있습니다. 이는 a 리스트가 tmp 리스트를 참조하고 있는 것입니다. 따라서 a[0] is tmp가 True일 것입니다. a.append(tmp[:]): 이 경우에는 tmp 리스트의 내용을 슬라이싱하여 새로운 리스트 객체를 생성한 후, 이를 a 리스트에 추가합니다. 이렇게 하면 a 리스트와 tmp 리스트는 완전히 별개의 객체가 ..
-
로컬에 포크한 깃허브 관리Base Line/github관리 2023. 8. 8. 15:30
##상황 로컬 컴퓨터에 포크한 깃헙 레포지터리와 같은 상태를 만들고 싶음!! 우선 작업하는 원본 레포지터리로 부터 포크를 했다고 가정해보자 포크한 레포지터리로 부터 로컬 컴퓨터에 클론을 진행한다. git clone https://github.com/ylab604/Algo_Master.git. cd Algo_Master 여기에 포크한 원본 레포지터리를 추가한다. git remote add upstream https://github.com/ylab604/Algo_Master.git. (여기서 upstream을 작명하는 것은 본인 마음이다 보통 upstream을 많이 사용한다.) 공통작업을 해야한다면 보통 브랜치를 생성해서 작업한다. 그치만 알고리즘 공부하는 레포지이므로 생략 ㅎㅎ 원본 레포지토리와 동기화 (..
-
remote ssh에러 삽질 2023. 7. 20. 01:51
lambda labs를 사용할일이 생겨서 vscode로 remote ssh를 실행하였다. https://statistics-and-data.tistory.com/entry/Github-private-repository%EB%A5%BC-clone%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95 Github private repository를 clone하는 방법 개인 랩탑에서만 Git을 사용하다가, 회사 노트북을 함께 사용하게 되면서 Private Repository를 clone할 일이 생겼다. 아래와 같이 그냥 치면 당연히 안 된다. git clone https://github.com//.git 방법을 찾아 헤 statistics-and-data.tistory.com https://www..
-
M2에 vcpkg설치하기에러 삽질 2023. 7. 19. 16:25
우선 vcpkg란 "vcpkg는 C++ 패키지 관리자로서, Microsoft에서 개발한 오픈 소스 도구입니다. vcpkg를 사용하면 C++ 프로젝트에 필요한 다양한 외부 종속성 패키지를 손쉽게 관리할 수 있습니다." 라고 하네요 파이썬에서 많이쓰는pip와 같은 기능을 한다고 생각하면 좋겠습니다. 애플실리콘이라서 한참 헤메다가 다음과같이 다시깔아서 해결하였습니다. 혹시나해서 chat gpt한테 물어봤더니 다음과 같이 대답해줘서 혹시나? 하고 따라해봤다. 결과는 성공적!! 안녕하세요! 실리콘 맥북에서 vcpkg를 설치하고 싶으시다면, 다음과 같은 단계를 따라하실 수 있습니다. 1. Xcode 설치: 먼저, Mac에 Xcode를 설치해야 합니다. App Store에서 Xcode를 찾아 설치하거나, 터미널에서 ..