Deploy deepface model fastapi (heroku deployment)

As we see in the previous part of article, the main process of developing Fastapi to work with deepface model explained. Here, the process of deploy the application on heroku is going to be explained.

The process to deploy is shorly explained here:

Create an account

Create an app

Connect app to your git

Install Heroku on your machine


Get Token


Create a branch in your project

I create the heroku for deepface app

Develop workflow

Then Define these at secrets in settings

Now after each push into the heroku branch, this workflow will deploy it to heroku.


This project is deployed to heroku

In order to use it let it some time to get up.

Verification images result:

Facial analysis result

Memory exceed error in heroku

doing some data engineering