Violence Detection 실습
졸업 프로젝트를 하기 위해 이미 만들어져 있는 Violence Detection을 실습해보며 살펴보려고 한다.
0. 참고한 것
git clone https://github.com/JoshuaPiinRueyPan/ViolenceDetection.git
1. Requirement
내가 현재 없는 것만 다운로드 할 예정이다.
1) sk-video
2) scikit-image
2. Quick Start 보고 따라하기
.
.
.
python Train.py를 돌릴 때 생겼던 error들
1)
Sol:
This error is due to ffmpeg not installed.
Install ffmpeg on windows or ubuntu
How to Install and Use FFmpeg on Ubuntu 18.04
FFmpeg is a free and open source command line tool for transcoding multimedia files. With FFmpeg you can convert between various video and audio formats, set sample rates and resize videos. In this tutorial we will show you how to install FFmpeg on Ubuntu
linuxize.com
- 다운 완료
2)
Sol)
TrainSettings.py의 WAITING_QUEUE_MAX_SIZE와 LOADED_QUEUE_MAX_SIZE를 줄였다.
DataSettings.py의 TIMEOUT_FOR_WAIT_QUEUE를 40로 설정했다.
DataManager.py의 IS_DEBUG_MODE를 True로 바꿨다.
데이터셋을 다시 제대로 설정해준 후, Train.py를 돌리는 데 성공했다.
3. Deploy
Deploy.py에 ckpt의 경로를 넣어주었다.
Deploy.py [테스트해 볼 동영상 경로]
테스트하는 데 성공하였다.
'인공지능' 카테고리의 다른 글
Implementation of YOLO v3 object detector in TensorFlow (0) | 2019.08.22 |
---|---|
Violence Detection 분석 (0) | 2019.08.09 |
Tensorflow Object Detection API with custom training data (0) | 2019.07.05 |
[모두의 딥러닝] lab 10. NN, ReLu, Xavier, Dropout, and Adam (0) | 2019.05.28 |
[모두의 딥러닝] lec 10-4. 레고처럼 넷트웍 모듈을 마음껏 쌓아보기 (0) | 2019.05.27 |
댓글