[PYTHON] Run YOLO v3 on AWS v2

Purpose

Run YOLO on AWS.

What was used

[YOLO] https://github.com/ptxyasu/keras-yolo3 [AWS] EC2 https://aws.amazon.com/jp/ec2/

flow

  1. Build an environment on AWS
  2. Data installation required for AWS
  3. Run yolo

About AWS EC2

This time I used Amazon Linux 2, which was a free tier.

solution

First, run YOLO in the environment where you usually develop. Here, I changed it so that it runs only on the CPU. Use the free command to check the CPU usage during execution. Then, it seemed that about 2G would be enough. → The instance type is decided to be t2.medium with a margin.

** After that, if you put tensorflow, keras, etc. and execute the detection program I was able to detect it safely! ** **

Future plans

Execute the detection program through PHP so that the result can be confirmed from a smartphone or the like.

Recommended Posts

Run YOLO v3 on AWS v2
Run YOLO v3 on AWS
Run Python on Schedule on AWS Lambda
Run TensorFlow on a GPU instance on AWS
Jupyter on AWS
[Python] Run Headless Chrome on AWS Lambda
YOLO on Chainer
Periodically run a python program on AWS Lambda
(For myself) AWS_Flask_3 (Install / Run Flask on AWS)
Run Django on PythonAnywhere
YOLO v4 environment construction ①
Run OpenMVG on Mac
Install Docker on AWS
Run Jupyter on Ubuntu on Windows
Run Openpose on Python (Windows)
Run AWS IoT Device SDK for Python on Raspberry Pi
Run Tensorflow 2.x on Python 3.7
Run Python CGI on CORESERVER
Run unix command on python
Run IPython Notebook on Docker
Run CircuitPython on Seeeduino XIAO
Run Jupyter Notebook on windows
Run FreeBSD on Linux + qemu
Run OpenVino on macOS Catalina
Run a Java app that resides on AWS EC2 as a daemon
Building an environment to run ChainerMN on a GPU instance on AWS
Run MuJoCo on WSL (2) (also GUI)
Install and run dropbox on Ubuntu 20.04
Run Tensorflow natively supported on windows
Use jupyter on AWS GPU instance
Run a Linux server on GCP
Run TensorFlow Docker Image on Python3
How to run matplotlib on heroku
Run SwitchBot on Windows 10 with Bleak
Run Matplotlib on a Docker container
Install AWS CLI v2 without sudo
Run headless-chrome on a Debian-based image
Run and see AWS Kinesis Firehose
Run XGBoost on Bash on Ubuntu on Windows
Run TensorFlow2 on a VPS server
Run vmware horizon client on Debian
[Note] Run Django on Amazon Linux 2
Run Keras on Google Colaboratory TPU
Run docker-compose on Amazon Linux2 on ARM64
Run Yocto on Ubuntu using QEMU.
Run Sesame on Sony's PaSoRi (RCS370)
[Python] I tried using YOLO v3
Periodically run Python on Heroku Scheduler
Run cron on Amazon Linux (set on Linux)
I tried object detection with YOLO v3 (TensorFlow 2.0) on a windows CPU!
Modules cannot be imported in Python on EC2 run from AWS Lambda