Back to Cntk

CNTK Examples: Image/FeatureExtraction

Examples/Image/FeatureExtraction/README.md

2015-12-08860 B
Original Source

CNTK Examples: Image/FeatureExtraction

Overview

Data:A small toy data set of food items in a fridge (grocery).
PurposeDemonstrate how to evaluate and write out different layers of a trained model using Python.
NetworkPre-trained ResNet_18 model.
TrainingNone, only evaluation of different layers of the model.

Running the example

Getting the data

We use the grocery toy data set (Examples/Image/DataSets/Grocery) and a pre-trained ResNet_18 model PretrainedModels/ResNet18_ImageNet_CNTK.model. To download both run

python install_data_and_model.py

Details

Run python FeatureExtraction.py to generate the output of a specific layer. Please refer to the comments in the Python code directly for how to choose different layers for evaluation.