Giter Club home page Giter Club logo

architectural-style-recognition's Introduction

ArchitecturalStyle Recognition

ArchitecturalStyle Recognition is a image classifier of 25 different architectural styles, using deep learning.

Made with fastai library. Source code on src. It can be runned in Google Colab

Deconstructivism

Table of content

Dataset

The dataset contains 10113 images from 25 architectural styles. It is a mixed between images scraped from Google Images and the dataset from the paper "Architectural Style Classification using Multinomial Latent Logistic Regression" (ECCV2014), made by Zhe Xu.

Number of images for each style
  • Achaemenid architecture: 392
  • American craftsman style: 364
  • American Foursquare architecture: 362
  • Ancient Egyptian architecture: 406
  • Art Deco architecture: 566
  • Art Nouveau architecture: 615
  • Baroque architecture: 456
  • Bauhaus architecture: 315
  • Beaux-Arts architecture: 424
  • Byzantine architecture: 313
  • Chicago school architecture: 278
  • Colonial architecture: 480
  • Deconstructivism: 335
  • Edwardian architecture: 280
  • Georgian architecture: 381
  • Gothic architecture: 331
  • Greek Revival architecture: 523
  • International style: 417
  • Novelty architecture: 382
  • Palladian architecture: 343
  • Postmodern architecture: 322
  • Queen Anne architecture: 720
  • Romanesque architecture: 301
  • Russian Revival architecture: 352
  • Tudor Revival architecture: 455

The original dataset was made by Zhe Xu. According to the paper, the best accuracy they could get in 2014 was nearly 70% accuracy. Paper "Architectural Style Classification using Multinomial Latent Logistic Regression" (ECCV2014)

Data augmentation

The extended dataset is used to test the model with "real world" images, in this case google images, whicha are not taken in perfect conditions.

To make the original dataset bigger and get better results, data augmentation is used. Which is achived creating new images, by transforming (horizontal flip, zoom, light, rotate, etc.) the images.

In this case we go from 4979 to 9588 images.

Data augmentation

Training

Training vs Test sets

The dataset is splitted in two:

  • training set (80%)
  • test set (20%)

Results

We got a 95% of accuracy on this dataset

Accuracy results

Demonstration

More examples

Greek Revival:

Greek Revival

Byzantine:

Byzantine

Gothic:

Gothic

Bauhaus:

Bauhaus

Deployment

The app folder contains the application ready to deploy on Render.

Run the app locally

The app can be runned locally.

First of all, you have to check all the Requirements, then run this command in your terminal:

python app/server.py serve

Or in python3:

python3 app/server.py serve

Note: it has been only tested in Linux.

License

MIT License

Links

Author

Danci, Marian Dumitru (@dumitrux)

architectural-style-recognition's People

Contributors

dumitrux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

architectural-style-recognition's Issues

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.