본문 바로가기

Computer Vision

(15)
[VScode] 메뉴 글씨 크기 조정하는 법 1. 좌측 하단 톱니바퀴 모양 Settings > Settings2. 상단 검색창에 'zoom' 검색3. zoom size 0.5 ~ 1정도 비율로 조정 눈이 너무 침침하다   + 다연아 컨트롤인가 쉬프트랑 플러스(+), 마이너스(-) 키 누르면 전체 해상도(메뉴 포함)가 커졌다 작아졌다 해! 그리고 메뉴 빼고 코드만 조절하는건 컨트롤이랑 마우스 휠 같이 코딩하는 날까지 기다릴게! !
[Github] Register SSH key / SSH 키 등록하기 (1) Register SSH key Author : @최규원 Update: 2021.05.10 Create a new SSH key on your local PC Register a SSH key is necessary to access Git via your local terminal. This tutorial will show how to create a ssh key and register it on github. First, you have to check whether ssh key is already existed. Follow the commands below to check ssh key existence. $ cd ./ssh $ ls If you haven't made any, it w..
[Github] How to add, commit, and push your code / Github에서 add, commit, and push 하는 법 [1] If you didn't pull any from git In your local folder, you have to initialize it. $ git init (1) Then, check the status that which one is added or not $ git status (2) Add the source that you want to push $ git add [**source_name**] (3) If you want to undo, $ git reset HEAD [**source_name**] Now , go back to (1) and check that you add the things right! If you want to add another one, repeat (..
yaml 파일을 통한 conda 가상환경 셋업 (가상 환경 옮기기) 가상환경 Export conda env export > [name_of_env].yaml 가상환경 Import (가상환경 생성) conda env create --file [your_env_name].yaml 현재 가상환경 내 설치된 리스트 확인 conda env list 이때 주의할 점은 'conda env info'는 base 환경의 스펙이 나온다. 즉 현재 설치된 콘다에 대한 정보가 뜨는 것이니 주의.
Domain Adaptation에서의 Open set 과 Partial set의 차이 Domain Adaptation Domain adaptation 의 목표는 source domain 에서 train된 model이 target domain에서도 잘 동작하도록 하는 것이다. 이때, target domatin은 source domain과 데이터 상에서의 차이를 가지는데 이는 크게 (1) data distribution, (2) data 타입의 차이, 그리고 (3) task 차이로 부터 기인할 수 있다. Open set 과 Partial set 이러한 domain adpation은 크게 open set과 partial set domain adaptation (DA) 로 나눌 수 있다. Open set DA는 target domain이 source domain과 완전히 달라 source-tar..
[Pytorch] transforms.Resize 후 transforms.CenterCrop 하는 이유 Question: transforms.Resize와 transforms.CenterCrop을 동일한 사이즈로 하면 같지 않을까? A : (1) 단일 사이즈만을 정의하면 Resize한 결과와 CenterCrop한 결과가 다르고, (2) (H,W)를 모두 정의하면 그 결과가 같다. 아래의 예시 코드는 Pytorch tutorial의 DCGAN 구현 코드이다. 코드에서 데이터 셋에 대하여 Resize 후 CenterCrop을 하는 preprocessing 과정을 거친다. dataset = dset.ImageFolder(root=dataroot, transform=transforms.Compose([ transforms.Resize(image_size), transforms.CenterCrop(image_siz..
GPU에 남아있는 process 지우기 / kill -9 [process_id] 가 안될 때 /RuntimeError: Address already in use 문제상황 RuntimeError: Address already in use 에러 발생 training 코드를 강제 중단 하는 과정에서 control+c 로 중단하여 process가 정상적으로 종료되지 않은 상황 해결방법 (1차) 일반적으로 nvidia-smi 를 실행하여 하단에 돌고 있는 process id를 보고 kill -9로 프로세스를 강제 종료하면 해결됨 process를 강제 종료하기 위하여 다음과 같이 실행. [PID]에 해당하는 process id 숫자를 넣어서 실행 $ kill -9 [PID] 해결방법 (2차) 필자는 python으로 실행시킨 process를 지우기 위하여 python으로 실행되는 프로세스들을 검색. $ ps aux | grep python 위의 사진에서 두번째 column에..
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 오류 해결 방법 문제 pretrained 된 모델을 pytorch를 통해 다운받을 때 생기는 오류 필자의 경우, 다운받는 아래와 같이 link가 http 형식으로 작성되어 있어 오류가 발생 model_urls = { 'fbresnet50': 'http://data.lip6.fr/cadene/pretrainedmodels/resnet50-19c8e357.pth', 'fbresnet101': 'http://data.lip6.fr/cadene/pretrainedmodels/resnet101-5d3b4d8f.pth' } 해결방법 (1) 상기 명시된 주소의 http 형식을 https 로 바꾸어서 실행한다. 보통 model configuration을 정의하는 파이썬 파일에 정의되어 있으므로 확인할 것 model_urls = { '..