Steps of reproducing the experiments:
-
Download resnet_v1_101.ckpt from tensorflow slim with the script
./z_pretrained_weights/download_resnet_v1_101.sh
. -
(optional) Verify the pre-trained weights, using
./network_verification/resnet_verification.py
. ImageNet validation set is needed. This can be also used for verifying the lifelong learning setting. After training on other databases, use the finetuned model (for shared variables) and the pre-trained model (for the last classifier layer) to do the evaluation on ImageNet. -
a. Download tfRecords files (link).
b. Donwload images and create tfRecords files with scripts in
./create_databases
.Stanford Dogs 120: link. MIT Indoors 67: link. Caltech 256: link.
c. Create new databases and add interface in
./database/dataset_reader.py
. -
run the script
./run_classification/train.sh
.
On the database of Stanford Dogs, L2-SP should have around 88~89% classification accuracy while L2 81~82%. Tested with Tensorflow 1.4, Python 2.7.