git clone https://github.com/ultralytics/yolov5
cd ./yolov5
!pip install -r requirements.txt# 동영상 파일 경로
source_path = '/path/your/video'
# 모델 가중치 파일 경로
weights_path = "/path/your/weights"
# detect.py 실행
%cd /content/yolov5
!python detect.py --source {source_path} --weights {weights_path}
이 프로젝트에 필요한 대용량 파일과 데이터를 아래 링크에서 확인하세요: