Giter Club home page Giter Club logo

indoor-outdoor-scene-classification's Introduction

Indoor-Outdoor-Scene-Classification

One of the application of image classification is to classify scenes and recognize them according to category. It's use can be ranged from autonomous vehicle navigation to video games.

Dependencies

  • ffmpeg
  • Python
  • Keras(Tensorflow Backend)

Data Handling

To start with the challenge first thing to do is prepare a neat data library with the given classes as outdoor and indoor. Data was taken from Youtube-8m dataset, at first videos were parsed categorically (Ref-https://github.com/gsssrao/youtube-8m-videos-frames) then frames were extracted using ffmpeg. Finally the data was split into train, test and validation sets.

Usage

  • Save the videos categorically in folders indoor and outdoor respectively. Go to each folder and run the Frames bash file with first argument as path and second as number of frames per second.
  • Use Split_data.py file with path to input and output folders.

Training

After the data is prepared, I used CNN to classify images and train the model. Using Image data generator to augment the data and convert image size to 64*64. It neatly takes in the data according to classes. Following model is used to train and validate the images:

Alt text

After trial/error and using early stopping method overfitting was reduced and the model showed accuracy of 80% for test data.

Alt text

Image Classification

To finally test the image run Scene-Classification.py file and provide the test image name when prompted.( test image should be in the current directory with othe saved model). $ python Scene-Classification.py

Future Work

As seen from the above model few changes can be made to increase accuracy of the model including increasing the training data,image augmentation, L1/L2 regularization. We can also include more layers of Dropout in the end.

References

-Youtube-8m dataset -Keras/tensorflow blogs and tutorials on modeling a CNN.

indoor-outdoor-scene-classification's People

Contributors

prajacta-nagraj avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

projectskh

indoor-outdoor-scene-classification's Issues

The Given Model always detects as outdoor?

Hi,
I was trying the Indoor-outdoor classification problem for my work. I tried the repo with sample model added in the repo. But, it shows out-door always. Am I doing any mistakes on it? or Is the model didn't mature well? If possible, Please share the matured model to test since I don't have any facility to trigger training from the top.
I tired for following image:
image_1

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.