nvidia-smi
# (선택) 새 가상환경 권장
python -m venv venv
.\venv\Scripts\activate
# PyTorch(GPU) 설치
pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu118
# 설치 검증
import torch
print("torch:", torch.__version__)
print("cuda available:", torch.cuda.is_available())
print(torch.version.cuda) # 빌드된 CUDA 버전
print(torch.backends.cudnn.version()) # cuDNN 버전
if torch.cuda.is_available():
print("device:", torch.cuda.get_device_name(0))
# gpu 가속
torch.backends.cudnn.benchmark = True
torch.backends.cuda.matmul.allow_tf32 = True
torch.backends.cudnn.allow_tf32 = True
# 최신 Ultralytics
pip install -U ultralytics opencv-python tqdm matplotlib pyyaml
# paddle ocr
python -m pip install paddlepaddle-gpu==3.0.0rc0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
'AI 활용 소프트웨어 개발 > AI, 머신러닝, 딥러닝' 카테고리의 다른 글
| 백본 특징 추출기, GAP, Attension Pooling , ContrastiveLoss (0) | 2025.09.04 |
|---|---|
| CNN 구조 안에서 커널(kernel), 스트라이드(stride), 채널(channel), MaxPooling, 다운샘플링(downsampling), Fully Connected Layer의 의미, 그리고 실제 계산 (5) | 2025.08.18 |
| YOLO 하이퍼파라미터 조정하기 (yaml 파일) (3) | 2025.08.11 |
| Resnet(Deep Residual Learning for Image Recognition)논문 요약 및 구현 (2) | 2025.08.05 |
| 딥러닝, 이미지 폴더 전처리하기. (3) | 2025.08.05 |