Code Monkey home page Code Monkey logo

deepdesign.space's Introduction

DEEP DESIGN

An image classifier for interior design styles. User can upload a photo of an interior space and see how much this image belongs to a certian interior design style.

Try it out at www.deepdesign.space

Styles currently being recognized: Bohemian, Coastal, Industrial, Scandinavian

Data Preparation

scrape_image.py: Script to scrape interior design photos from Google Images and save them to AWS S3 bucket. Images were labeled using search terms, e.g. all images scraped using search term "Bohemian interior design" were labeld as Bohemian.

Image_data/dedup_image.py: Deletes duplicate images from folder.

Image_data: Contains all 1800 images used to train the model.

Feature Extraction

All images were passed through Google's pretrained Inception V3 neural network. 2048 features were extracted for each image. Explore_models.ipynb shows the process of using 5-Fold Cross-Validation to choose the best performing model.

MODEL LOG_LOSS SCORE
LOGISTIC REGRESSION 0.492
RANDOM FOREST CLASSIFIER 0.883
GRADIENT BOOSTING CLASSIFIER 0.59
ONE HIDDEN LAYER WITH SOFTMAX CLASSIFIER 0.4

The final model is a mini neural network with one hidden layer (1024 features) and softmax classifier.

Model/train_inception.py: Contains script to train the model using keras.

inception.h5: Saved Inception V3 model.

inV3_last_layer.h5: Saved neural network with one hidden layer and softmax classifier.

Model Evaluation

Model performance by design style. The model seems to recognize some Coastal and Industrial images as Scandinavian. However, this may not be considered as missclassification because sometimes one room may contain a mix of multiple design styles.

Web App

run python app.py to start the web app on local host 5000.

deepdesign.space's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.