전체 글 64

[ubuntu] 일정시간마다 파이썬 코드 실행 (Crontab)

2022-02-03 작성 ubuntu 환경에서 일정시간마다 python code를 실행해야 하는 task가 생겼다. 찾아보니 windows 관리도구에서 제공하는 작업 스케줄러 역할을 해주는 Crontab 이라는 편리한 기능이 있어서 공부하면서 정리하려 한다. 1. Crontab 설치 sudo apt-get update sudo apt-get install cron 2. Crontab 명령어 현재 사용자의 Crontab 설정 보기 sudo crontab -l​ 현재 사용자의 Crontab 설정편집 sudo crontab -e​ 현재 사용자의 Crontab 설정 삭제 sudo crontab -r​ 3. Crontab 규칙 ex) * * * * * /home/msdl/Downloads/test.py → 매분,..

기본기/OS 2022.02.03

[Depth camera] - Stereolabs ZED2i(초기 환경설정)

2022-02-03 작성 이번에 연구실에서 depth camera를 이용해서 object를 segmentation 하고 distance를 계산하는 task가 주어졌다. 이를 위해 zed2i 카메라를 이용하기로 하였고 기본적인 환경세팅 방법을 정리해보려 한다. 작성기준 os: ubuntu 18.04 1. ZED SDK 설치 https://www.stereolabs.com/developers/release/ ZED SDK 3.6 - Download ZED SDK 3.6 introduces a new custom bounding box detector input for the 3D Object detection, a major improvement in the Body Tracking, and the supp..

COCO Data format과 Pycocotools 사용법

이 글은 2021년 8월 25일 기준 작성된 글입니다. COCO Dataset 은 머신러닝을 하시는 분들이라면 다들 알고 계신 데이터셋일 겁니다. Object Detection, Segmentation, Keypoint Detection 등 여러가지 Annotation 정보를 제공하는 데이터셋인데 최신 논문의 성능비교 지표로서 사용되고 있습니다. 이 글에서는 최근 MMdetection이라는 config기반 toolbox를 공부하면서 해당 toolbox에서 주로 사용되는 데이터 저장형식인 COCO Data format과 데이터를 불러올 때 유용한 Pycocotools에 대해 설명하려고 합니다. COCO data format COCO Dataset은 아시다싶이 이미지와 annotation 파일 두가지로 분류..

기본기/Tools 2021.08.25

[ubuntu] 18.04 CUDA, cuDNN 설치

이 글은 2021년 8월 9일 기준 작성되었습니다. 시간이 지나면 버전이 달라지면서 에러가 발생할 수 있습니다. 1. CUDA 설치 https://developer.nvidia.com/cuda-toolkit-archive CUDA Toolkit Archive Previous releases of the CUDA Toolkit, GPU Computing SDK, documentation and developer drivers can be found using the links below. Please select the release you want from the list below, and be sure to check www.nvidia.com/drivers for more recent product..

기본기/OS 2021.08.09

[ubuntu] 18.04 설치 후 세팅하기

이 글은 2021년 8월 9일 작성된 글입니다 잘못된 점이 있다면 댓글 부탁드립니다. 1. build-essential 설치 make, gcc, g++등등을 설치 $ sudo apt-get update $ sudo apt-get install build-essential 2. 그래픽 카드 드라이버 설치 자신에게 맞는 드라이버 버전 확인 후 설치해야 함 #설치 가능한 driver 버전 확인 ubuntu-drivers devices sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update sudo apt install nvidia-driver-470 #자신에게 맞는 버전으로 설치 sudo reboot 3. 설치확인 nvidia-smi 성공적으로 dr..

기본기/OS 2021.08.09

[Ubuntu] 18.04 버전 설치방법

이 글은 2021년 8월 9일 기준 작성되었습니다. 오류가 있다면 댓글 부탁드립니다. 0. ubuntu ios 파일 다운로드 https://releases.ubuntu.com/18.04.5/ Ubuntu 18.04.5 LTS (Bionic Beaver) Select an image Ubuntu is distributed on three types of images described below. Desktop image The desktop image allows you to try Ubuntu without changing your computer at all, and at your option to install it permanently later. This type of image is what m..

기본기/OS 2021.08.09

[Detection+Tracking] YOLOv4+Deep_SORT custom model 사용법

안녕하세요 이글은 2021년 8월 9일 기준 작성된 글입니다. 오늘은 Object Detection 기반 Tracking 실습을 하려합니다. 학습할 모델명은 YOLOv4+Deep_SORT 입니다. 1. GPU 구동환경 구성 https://dohyeon.tistory.com/4 딥러닝 GPU 개발환경 구성방법(cuda,cudnn)-Window10 2021년 3월기준 자료입니다. 시간이 지나면서 버전이 업데이트 되었을 것입니다. 아래의 방법과 같이 버전을 잘 확인해주세요! 윈도우 검색창에 cmd를 검색하고 명령 프롬프트 창을 킨다. 아래 명 dohyeon.tistory.com 2. YOLOv4 custom dataset Training (custom weight파일 얻기위해) https://dohyeon.t..

[Detection] Yolov4 custom dataset 학습방법(colab)

2021년 7월 27일 기준 작성된 글입니다. 수정사항이 있으면 댓글로 말씀 부탁드립니다. https://github.com/dohyeonYoon/yolov4-custom-training GitHub - dohyeonYoon/yolov4-custom-training: google colab을 이용한 yolov4 custom dataset training google colab을 이용한 yolov4 custom dataset training. Contribute to dohyeonYoon/yolov4-custom-training development by creating an account on GitHub. github.com 1. Google Colab 실행 2. 런타임 유형변경 GPU 사용을 위해 런..

YOLO v4 모델 사용방법

2021년 7월 22일 기준 작성된 글입니다. 수정사항 댓글로 남겨주시면 빠르게 수정하겠습니다. 실행에 앞서 CUDA와 CUdnn 설치를 하고 진행하시면 됩니다 https://dohyeon.tistory.com/4?category=1007080 딥러닝 GPU 개발환경 구성방법(cuda,cudnn)-Window10 2021년 3월기준 자료입니다. 시간이 지나면서 버전이 업데이트 되었을 것입니다. 아래의 방법과 같이 버전을 잘 확인해주세요! 윈도우 검색창에 cmd를 검색하고 명령 프롬프트 창을 킨다. 아래 명 dohyeon.tistory.com 1.YOLO v4 -tensorflow 버전 다운로드 □ 아래 링크의 프로젝트를 다운로드한 후, 압축을 풀어줍니다. 초록색 버튼 Code를 클릭한 후, Downloa..

[pyinstaller] pyinstaller 사용법 및 오류해결

2021.07.14 기준 작성된 글입니다. PyInstaller를 이용하면 파이썬과 PyQt5로 제작한 GUI 코드를 실행파일 (exe)로 만들어서 파이썬이 설치되어 있지 않은 PC에서도 프로그램을 실행할 수 있도록 해줍니다. (PyInstaller 홈페이지) 2022-12-09 내용이 추가된 글을 확인해주세요! https://dohyeon.tistory.com/57 [ubuntu18.04] pyinstaller 사용법 및 문제해결 오늘은 pyinstaller를 사용해 여러개의 모듈이 묶인 python code를 deploy하는 방법을 정리하려 한다. 리눅스는 윈도우10과 달리 file_name.spec 라는 파일이 생성되지 않는다. 따라서 하나하나 라이브러리 dohyeon.tistory.com 1. P..

기본기/Tools 2021.07.14