berinhard / heroku-buildpack-darknet

Heroku Buildpack for Darknet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

heroku-buildpack-darknet

This buildpack downloads and extracts Darknet.

Add the Buildpack

Just add the buildpack to your heroku app by executing:

heroku buildpacks:add https://github.com/berinhard/heroku-buildpack-darknet.git

Usage

The darknet project will be available stored in /app/darknet/. You can just execute /app/darknet/darknet ... from your app.

Integrating with other applications

If you're running this buildpack with a Python application, you can run from your python code:

import subprocess, shlex

command = './darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg'
detect = subprocess.Popen(
    shlex.split(command),
    cwd='/app/darknet/',
)
detect.wait()

Inspired by heroku-buildpack-wkhtmltopdf.

About

Heroku Buildpack for Darknet

License:GNU Lesser General Public License v3.0


Languages

Language:Shell 100.0%