Yolo 비전 선전
선전
지금 참여하기
용어집

PyTorch

Ultralytics YOLO 같은 AI 혁신을 지원하는 유연한 Python 머신 러닝 프레임워크인 PyTorch 대해 알아보세요. 지금 바로 더 스마트하고 빠르게 구축하세요!

PyTorch is an open-source machine learning library primarily developed by Meta AI that has become a cornerstone for researchers and developers in the field of deep learning. Known for its flexibility and ease of use, it allows users to build and train complex neural networks using a dynamic computational graph. This feature, often referred to as "eager execution," enables code to be evaluated immediately, making debugging and prototyping significantly more intuitive compared to frameworks that rely on static graph definitions. It integrates seamlessly with the Python programming language, feeling like a natural extension of standard scientific computing tools.

Core Mechanics and Significance

At the heart of this framework are tensors, which are multi-dimensional arrays similar to those found in the NumPy documentation. However, unlike standard arrays, PyTorch tensors are designed to leverage GPU acceleration provided by NVIDIA CUDA. This hardware acceleration is critical for the massive parallel processing required to train modern artificial intelligence (AI) models efficiently.

The library supports a vast ecosystem of tools for computer vision (CV) and natural language processing. By providing a rich set of pre-built layers, optimizers, and loss functions, it simplifies the process of creating algorithms for tasks like image classification and sequence modeling.

실제 애플리케이션

이 프레임워크의 다용도성은 다양한 산업 분야에서 고효율 AI 솔루션으로 채택되도록 이끌었습니다:

  1. Autonomous Vehicles: Industry leaders leverage PyTorch to build deep learning models that process video feeds from car cameras. These models perform real-time object detection to identify lanes, signs, and pedestrians, enabling safer navigation.
  2. Medical Diagnostics: Researchers use the framework to develop advanced healthcare applications. For instance, it powers systems that analyze MRI scans or X-rays to assist doctors in detecting tumors via precise image segmentation.

관련 도구와의 비교

PyTorch 역할을 더 잘 이해하기 위해서는 AI 스택 내 다른 일반적인 PyTorch 구분하는 것이 도움이 됩니다:

  • Vs. TensorFlow: Google 개발한 TensorFlow 정적 연산 그래프에 의존해 왔으며, 이는 디버깅을 어렵게 했지만 배포를 최적화했습니다. 두 프레임워크 모두 기능 면에서 수렴되었지만, PyTorch 직관적인 인터페이스 덕분에 신속한 프로토타이핑과 연구에 종종 PyTorch .
  • Vs. OpenCV: OpenCV 신경망 훈련보다는 전통적인 이미지 처리 기능(크기 조정, 필터링, 색상 변환 등)에 중점을 OpenCV . 일반적인 워크플로우에서 개발자는 이미지를 분석을 위해 PyTorch 입력하기 전에 데이터 전처리에 OpenCV 사용합니다.

Ultralytics 통합

최첨단 YOLO26과 널리 사용되는 YOLO11을 포함한 전체 Ultralytics 제품군 YOLO11를 포함한 전체 울트라리틱스 모델 제품군은 PyTorch 기반으로 원활하게 구축됩니다. 이 기반은 사용자가 프레임워크의 속도, 안정성 및 광범위한 커뮤니티 지원을 활용할 수 있도록 보장합니다. 사용자 정의 훈련 데이터에 대한 전이 학습을 수행하거나 에지 디바이스용 모델을 내보내는 경우에도 기본 아키텍처는 PyTorch 그라디언트에 의존합니다.

곧 출시될 Ultralytics 이 경험을 더욱 간소화하여, 방대한 보일러플레이트 코드를 작성할 필요 없이 데이터셋 소싱, 훈련 및 배포를 관리할 수 있는 통합 인터페이스를 제공합니다.

다음 예제는 GPU 확인하고 YOLO 사용하여 추론을 실행하는 방법을 보여줍니다. 이는 프레임워크가 내부적으로 하드웨어 가속을 처리하는 방식을 보여줍니다:

import torch
from ultralytics import YOLO

# Check if CUDA (GPU) is available for PyTorch acceleration
device = "cuda" if torch.cuda.is_available() else "cpu"
print(f"PyTorch is using device: {device}")

# Load a YOLO26n model (built on PyTorch)
model = YOLO("yolo26n.pt")

# Perform object detection on an image
# PyTorch handles tensor operations and moves data to the GPU automatically
results = model("https://ultralytics.com/images/bus.jpg", device=device)

Ultralytics 커뮤니티 가입

AI의 미래에 동참하세요. 글로벌 혁신가들과 연결하고, 협력하고, 성장하세요.

지금 참여하기