Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Y

Yolov7-Flask

> DevOps
Open source

A Beautiful Flask Web API for Yolov7 (and custom) models

199 stars0 likes1 views
WebsiteGitHub

About

A Beautiful Flask Web API for Yolov7 (and custom) models

Yolov7 Flask

A Beautiful Flask Framework for Implementing the Latest Yolov7 Model

I developed this API for the purpose of deploying my own Yolov7 model, which is a very accurate skin burn detector. For more information about that project please check out this repo:

https://github.com/Michael-OvO/Burn-Detection-Classification

Installation & Usage:

To run this, please make sure you follow the following steps:

a trained Yolov7 model (or you can also use the official pretrained yolov7 models), they can be downloaded here.

Once you have downloaded files, proceed to the next step. The feature of this web app is that it does not require a specific model name, as I have written code to directly search for the model file that is inside this directory (so you do not need to modify anything and just run it). But do note that please just put one model file into your directory a single time, or else the code will not run properly. - the green bar on top of the page will display which model is currently being inferenced on your machine.

Make sure you have met the following requirements:

- PyTorch >= 1.6

- flask

- and dependencies required by Yolov7 (if you git cloned the original yolov7 repo then simply run pip install -r requirements.txt inside the yolov7 repo)

then, to launch the app, run the following command:

bash
$ FLASK_ENV=development FLASK_APP=app.py flask run

then, visit http://localhost:5000/ in your browser.

choose some pictures that the model has been trained on and test it out!

Demonstration:

I will be using yolov7-e6e.pt for this demo and I am currently working with a RTX 3070Ti.

My directory setup is like this:

Then running the app.py yields the following output:

(if it is first time running, it may take a while to download the original repo

…

Then, simply control + click on the address will bring you to the flask app.

The original yolov7 pretrained weights was trained on MS COCO dataset, so it could recognize a dog:

Have fun using this framework!

Todos:

  • Basic Functionalities and CSS layout
  • Model Indicator & Automatically search for model weights
  • Support for video
  • Support for webcam

(If there are requests to add these 2 features please let me know. I will consider adding it)

Acknowledgment:

This framework was rewritten from this repo:

https://github.com/robmarkcole/yolov5-flask

Issues· 5 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonflaskflask-webinference-apimodel-deployment

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理