Skip to content

A webAPP that can assess the uploaded picture by CNN model

Notifications You must be signed in to change notification settings

TonyTTTTT/BestShot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BestShot

BestShot is a Social Media where you can upload your post your picture on it for sharing with each other. The novelty compare to other Social Media is that we embed an Convolutional Neural Network(CNN) in it to score each picture user post.

How to run

(Optional)Virtual Environment

Highly recommend to create a Python's virtual environment for this project, avoid from contaminate your native Python's environment.

# install the packages for create virtual environment
$ pip install virtualenv

# create virtual environment
$ cd Where/You/Want/To/Build/VirtualEnv
$ python -m virtualenv BestShotEnv

# activate virtual environment
# Windows
$ .\BestShotEnv\Scripts\activate
# Linux
$ source ./BestShotEnv/bin/acitvate

Install Python packages

This project is mainly developed in Python, so first you need to install all the requirement Python packages in "requirement.txt".

$ cd /The/Path/of/BestShot
$ pip install -r requirements.txt

# Due to the conflict between Keras and Tensorflow, you'll need this command to reinstall Tensorflow
$ pip install tensorflow --upgrade --force-reinstall

Django command to run the website

We use Python Web framwork Django to build up this website, so after all requirement installed, just run the Django command to start the website.

$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py runserver

Then go to url: "http://127.0.0.1:8000/main/" in your browser, you will see the homepage of BestShot.

About

A webAPP that can assess the uploaded picture by CNN model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •