환경구축
-
pip install opencv-python 설치해도 잘 안될 때환경구축 2023. 10. 27. 23:46
여러가지 문제가 있겠지만 cv2 인식을 못하면 위 명령어를 쳐야하고 명령어를 쳤을때 잘 실해되지 않으면 특정 버전에서만 돌아가는 코드가 있는것 같다. 나의 경우 아래 같은 에러가 떳었고 아래 명령어로 해결함. QObject::moveToThread: Current thread (0x2b68950) is not the object's thread (0x328ee50). Cannot move to target thread (0x2b68950) qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "~/miniconda3/envs/surroundocc/lib/python3.7/site-packages/cv2/qt/plugins" even though i..
-
ubuntu22.04에서 화면캡쳐 side bar에 고정 시키기환경구축 2023. 10. 27. 23:39
이상하게 ubuntu22.04를 사용할때 screen shot 을 치면 나오지만 favorite으로 등록을 할 수 없다. 예전 스크린 샷프로그램을 깔아서 사용하자! sudo apt install gnome-screenshot Install the old Gnome screenshot tool and pin that to the launcher The old tool remains available and can be installed with the command sudo apt install gnome-screenshot. You then can pin a launcher to it on the dock as of old. 출처 : https://askubuntu.com/questions/1429220..
-
miniconda 및 jupyter 설치환경구축 2023. 10. 11. 01:02
1. conda vs miniconda 설치할때 약간 고민되는데 나의 경우는 내가 어떤 s/w를 설치해야하는지 알아야 하기도하고 버전에 따라서 안되는 경우도 존재해서 mini conda 가 좋은 것 같음. 그리고 용량도 작음. https://docs.conda.io/projects/miniconda/en/latest/index.html Miniconda — miniconda documentation These three commands quickly and quietly install the latest 64-bit version of the installer and then clean up after themselves. To install a different version or architectur..
-
ubuntu 설치시 검은 화면이 나올때환경구축 2023. 10. 10. 22:59
문제 점 ubuntu 설치하고 나서 검은화면이 나오면서 다음으로 넘어 가지 않는다. 해결책 1. GNU GRUB화면을 띄운다. shfit를 누르면 GNU GRUB 뜸. 나의 경우는 멀티부팅이라서 그냥 뜸. 2. Advanced options for Ubuntu를 선택함. 3. recovery mode 선택 4. root - Drop to root shell prompt 선택 5. 아래 명령어 사용 후 재부팅 sudo apt-get update sudo apt-get upgrade sudo ubuntu-drivers autoinstall
-
cuda 설치 및 pytorch 설치환경구축 2023. 10. 10. 00:48
https://freddiekim.tistory.com/36 Terminal로 nvidia-driver, cuda, cudnn설치하기 터미널로 설치하는 방법에 대해서 정리를 했다. 아래 처럼 shell로 만들어 놓으면 나중에 다시 설치할때 편할 것 같기는 하다. 꼬여 있는 경우도 있어서 0 번 완전 삭제 부분을 추가했다. 확인하고 freddiekim.tistory.com 내가 예전에 적었던 글인데 무시하고 아래 글 보면 됨. 설치 전에 이해할것은 nvidia-driver --> cuda --> cudnn 순임. 그러나 cuda 를 설치하면 cuda 드라이버 만들때 추천한 nvidia-driver 가 자동으로 설치됨. 그래서 그거 사용하면됨. 나의 경우는 11.8을 설치하니 nvidia-driver 가 옛..
-
리눅스에서 MAC 키보드 사용할때 function키 기본으로 사용하기환경구축 2023. 9. 3. 01:58
리눅스에서 맥 키보드 사용할때 fn + function키를 눌러야 하므로 많이 불편함. echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf sudo update-initramfs -u -k all sudo reboot 참고: https://help.ubuntu.com/community/AppleKeyboard
-
Terminal로 nvidia-driver, cuda, cudnn설치하기환경구축 2023. 7. 8. 01:48
https://freddiekim.tistory.com/47 cuda 설치 및 pytorch 설치 https://freddiekim.tistory.com/36 Terminal로 nvidia-driver, cuda, cudnn설치하기 터미널로 설치하는 방법에 대해서 정리를 했다. 아래 처럼 shell로 만들어 놓으면 나중에 다시 설치할때 편할 것 같기는 하다. 꼬 freddiekim.tistory.com 위 글을 읽기를 추천한다. 아래 글도 틀린것은 아니지만 윗 글이 그래픽 카드에따른 버전을 설명하고 있어서 중요한 개념이라 추천함. 터미널로 설치하는 방법에 대해서 정리를 했다. 아래 처럼 shell로 만들어 놓으면 나중에 다시 설치할때 편할 것 같기는 하다. 꼬여 있는 경우도 있어서 0 번 완전 삭제 부분..
-
mAP(Mean Average Precision)환경구축 2023. 3. 19. 02:42
yolo를 학습하고 나면 아래같은 summary 결과가 나온다. 5 epochs completed in 0.108 hours. Optimizer stripped from runs/train/exp/weights/last.pt, 14.9MB Optimizer stripped from runs/train/exp/weights/best.pt, 14.9MB Validating runs/train/exp/weights/best.pt... Fusing layers... Model summary: 157 layers, 7225885 parameters, 0 gradients, 16.4 GFLOPs Class Images Instances P R mAP50 mAP50-95: 100%|██████████| 4/4 [00..