yolov3

(★ 10,594)

학습, 검증, 추론 및 멀티 포맷 내보내기를 지원하는 실시간 객체 탐지를 위한 YOLOv3, YOLOv3-SPP, YOLOv3-tiny의 PyTorch 구현체입니다.

파일 탐색기

  • .dockerignore
  • .gitignore
  • AGENTS.md
  • benchmarks.py
  • CITATION.cff
  • CLAUDE.md
  • CONTRIBUTING.md
  • detect.py
  • export.py
  • hubconf.py
  • LICENSE
  • pyproject.toml
  • README.md
  • README.zh-CN.md
  • requirements.txt
  • train.py
  • tutorial.ipynb
  • val.py

# 설치 가이드

python
사전 준비물

설치 및 실행 절차

git clone https://github.com/ultralytics/yolov3

저장소 복제

cd yolov3

프로젝트 디렉토리로 이동

pip install -r requirements.txt

필수 패키지 설치

핵심 명령어

pip install -r requirements.txt

프로젝트 실행에 필요한 파이썬 의존성 패키지를 설치합니다.

python detect.py --weights yolov3.pt --source 0

다양한 소스(이미지, 비디오, 웹캠 등)를 대상으로 객체 탐지 추론을 실행합니다.

python train.py --data coco.yaml --epochs 300 --weights '' --cfg yolov3.yaml --batch-size 32

지정된 데이터셋과 모델 설정으로 YOLOv3 모델을 학습시킵니다.

python val.py --weights yolov3.pt --data coco.yaml

학습된 모델의 검증 정확도를 평가합니다.

python export.py --weights yolov3.pt --include onnx

모델을 ONNX, TensorRT 등 다른 형식으로 내보내기(변환)합니다.

사전 학습된 가중치 파일은 최초 실행 시 자동으로 다운로드됩니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

pip install

설명 보기 ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

python

설명 보기 ▼

Python 언어 인터프리터.
더 많은 정보: <https://docs.python.org/using/cmdline.html>.

python

REPL(대화형 셸) 시작:

python {{path/to/file.py}}

특정 Python 파일 실행:

python -i {{path/to/file.py}}

특정 Python 파일 실행 후 REPL 시작:

// repository documentation