Demo of VGG-16 scene recognition model pre-trained on places-365 dataset.
Note : This is just a demo script to visualize quick results of scene contexts on images. The pre-trained models are all available in the MIT Places website.
Image
Top 5 scene contexts with the associated probability
- python2
- Caffe
- Pandas
All codes are tested on a container built from Ubuntu 14.04 CPU/GPU docker image downloaded from floyd-hub(link given below).
- Download the Scene_Recognition_models directory from Drive and place it in the same level as that of Scene.py
- To find scene context of an image, run python Scene.py -i /full/path/to/image
- To find scene contexts of all images inside a directory, run python Scene.py -d /path/to/directory. This will store the results in result.csv file
For testing the code, use the sample images provided in the example_images directory.
- The model/weight files are downloaded from Scene-365 Model zoo
- Docker Image
- MIT Places Dataset