전체 글(45)
-
Open Pose
개요 사람 사진에서 신체의 특정 위치를 18개 point로 표시하여 자세를 추정한다 key_point = { "Head": 0, "Neck": 1, "RShoulder": 2, "RElbow": 3, "RWrist": 4, "LShoulder": 5, "LElbow": 6, "LWrist": 7, "RHip": 8, "RKnee": 9, "RAnkle": 10, "LHip": 11, "LKnee": 12, "LAnkle": 13, "Chest": 14, "Background": 15 } https://arxiv.org/pdf/2204.12484v2.pdf 데이터셋 COCO(Microsoft Common Objects in Context) https://cocodataset.org/#home !wget h..
2022.09.25 -
pytorch profiling
모델의 병목을 파악할때 유용하다. https://tutorials.pytorch.kr/recipes/recipes/profiler_recipe.html PyTorch 프로파일러(Profiler) 이 레시피에서는 어떻게 PyTorch 프로파일러를 사용하는지, 그리고 모델의 연산자들이 소비하는 메모리와 시간을 측정하는 방법을 살펴보겠습니다. 개요: PyTorch는 사용자가 모델 내의 연산 비용 tutorials.pytorch.kr 사용법 2가지 model의 forward에 profile 호출 import torch.autograd.profiler as profiler context 사용 from torch.profiler import profile, record_function, ProfilerActivit..
2022.09.24 -
Albumentation, Image trasnform
볂공식 document https://albumentations.ai/docs/getting_started/mask_augmentation/ 참고 블로그 https://hoya012.github.io/blog/albumentation_tutorial/ colab example https://colab.research.google.com/drive/1KgVb5W2UeXHAgwZfIe_0mJZvXqBmbJal https://colab.research.google.com/drive/1JuZ23u0C0gx93kV0oJ8Mq0B6CBYhPLXy#scrollTo=8H4FnMgNdR7A&forceEdit=true&sandboxMode=true Image Classification, Segmentation, Objec..
2022.09.22 -
Pytorch Reproductibility 설정
실험시 동일한 재현을 위한 설정들 Seed 고정 Nondeterministic algorithm 설정 해제 DataLoader worker seed 고정 def seed(seed = seed): random.seed(seed)# python random seed np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.cuda.manual_seed_all(seed)# multi GPU torch.backends.cudnn.benchmark = False # cuda algorithm 고정 torch.backends.cudnn.deterministic = True# deterministic algorithm 사용 torc..
2022.09.22 -
torch 분산 학습
병렬학습과 분산학습 병렬학습 - Data Parallel, Model Parallel(모델이 커서 GPU ram에 올라가지 않을때 모델을 분리) 분산학습 - Distributed from torch.nn.parallel import DistributedDataParallel as DDP 필수 용어 Node : machine의 수, machine 번호 Rank : Process ID Local Rank : 각 node 내에서 할당하는 Process ID Global Rank : 모든 Process 범위에서 Process ID World size : 프로세스 수 World size(W) : 모든 node에서 실행하는 Process 수 World size(L) : 각 node 내에서 실행하는 Process 수..
2022.09.17 -
개발 환경 만들기
기본으로 한번 읽고 시작할것 https://theorydb.github.io/dev/2020/02/14/dev-dl-setting-local-python/ [Setup] 딥러닝 개발 환경 구축 한방에 끝내기 개요 딥러닝이라는 긴 여정을 위한 첫 단계. 딥러닝 개발 환경 구축을 위한 포스팅입니다. 환경설정으로 인한 시간낭비를 최소화 하고자 대부분의 내용을 총정리합니다. 목차 사전 확인사항 및 theorydb.github.io Monokia++ 테마 설치 jupyter labextension install @hokyjack/jupyterlab-monokai-plus Jupyterlab extension 설치 https://jjonhwa.github.io/%EC%8B%9C%EA%B3%84%EC%97%B4/20..
2022.09.16