Skip to content

terencelee-uni/multitag

 
 

Repository files navigation

PyTorch Flask MultiTag Vacation Dataset Classifier

Read the Blog about this project.

Check the demo hosted on heroku here (it may be a bit slow to load since it is free-tier)

An image scraper version of the Flask app is located on the flaskv2 branch.

Summer project that trained a Pytorch classifier with a dataset of tens of thousands of photos. The model uses resnet50 as a base and via transfer learning utilizes a hand labeled dataset of about 1500 vacation photos to be better biased towards the inputs. I used a skeleton code for multitag pytorch training as well as a flask-heroku web app skeleton code and modified it to suit my needs. I am still tuning the model's accuracy so further commits updating 'model.pth' will occur on a regular basis.

Flowchart

Multitag Flowchart

Requirements

Install them from requirements.txt:

pip install -r requirements.txt

Local Deployment

Run the server:

python app.py

Heroku Deployment

Deploy

License

The mighty MIT license. Please check LICENSE for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.9%
  • HTML 18.0%
  • Other 1.1%