본문 바로가기

전체 글

(12)
AI기초프로젝트 4주차 과제 - Transfer Learning for Computer Vision Tutorial ConvNet 미세조정(Finetuning) 사전 훈련된 네트워크로 초기화: 무작위 초기화 대신, ImageNet 1000 데이터셋과 같은 사전 훈련된 네트워크를 사용하여 네트워크를 초기화합니다. 통상적인 훈련 수행: 네트워크의 나머지 부분은 보통 훈련 과정을 거칩니다. 이는 사전 훈련된 네트워크의 가중치를 조정하여 새로운 데이터셋에 더 잘 맞도록 하는 과정을 포함합니다. ConvNet을 고정된 특징 추출기로 사용 네트워크의 대부분의 가중치 고정: 네트워크의 마지막 완전 연결 계층을 제외한 모든 계층의 가중치를 고정합니다. 마지막 완전 연결 계층 교체 및 훈련: 마지막 완전 연결 계층을 새로운 계층으로 교체하고, 이 새로운 계층의 가중치만 무작위로 초기화하여 훈련합니다. 이 계층은 새로운 데이터셋에 특화..
AI기초프로젝트 2주차 과제 - Detectron2 Install detectron2 # Properly install detectron2. (Please do not install twice in both ways) !python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' > /dev/null GPU연결 확인 import torch, detectron2 !nvcc --version TORCH_VERSION = ".".join(torch.__version__.split(".")[:2]) CUDA_VERSION = torch.__version__.split("+")[-1] print("torch: ", TORCH_VERSION, "; cuda: ", CUDA_VERSION..
AI기초프로젝트 1주차 과제 - 음성인식 Speech Command Classification with torchaudio 1. 필요 라이브러리 설치 # Uncomment the line corresponding to your "runtime type" to run in Google Colab # CPU: # !pip install pydub torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html # GPU: !pip install pydub torch==1.7.0+cu101 torchvision==0.8.1+cu101 torchaudio==0.7.0 -f https://download.pytorch...