Skip to content

stefanbschneider/pytorch-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django + PyTorch Image Classification App

A simple Django web app classifying uploaded images using a pretrained PyTorch DenseNet.

As an example of how to integrate PyTorch with Django and deploy it on Heroku.

image classification demo

Setup

pip install -r requirements

Usage

Live demo: Heroku (might take multiple seconds to start the free Heroku instance)

Development

python manage.py runserver

The app is running on http://localhost:8000/

Production Deployment on Heroku

See description in blog post.