robmarkcole / yolov5-flask

Official implementation at https://github.com/ultralytics/yolov5/tree/master/utils/flask_rest_api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku [deployement] 'NameError: name 'model' is not defined'

chiragkava opened this issue · comments

Works fine in local machine but when i try to deploy on heroku and upload the image for inference it gives error 500
internal server error.

Here is the heroku log

image

Any idea why this is happening. sorry if it is trivial question.

Steps to recreate

  1. Clone this repo
  2. modify requirements file (just copy yolov5 req.txt to current one)
  3. Add procfile (web: gunicorn app:app --log-level debug)
  4. deploy on heroku

I dont know anything about Heroku - might be more logs somewhere with error installing yolo

t
@chiragkava try latest release on master

Thanks for the help, there was problem from my side did a clean install of all library (updated version) and worked for me !