GitXplorerGitXplorer
d

wsl.resnet.torch

public
9 stars
5 forks
1 issues

Commits

List of commits on branch master.
Unverified
4791a9b8b98b72500bfb2f8541418e4a93054cd0

Update README.md

ddurandtibo committed 8 years ago
Unverified
97552e9bb6603ada45af6615022eca2da35703e2

update README

ddurandtibo committed 8 years ago
Unverified
b70fefa200c07352269354216bf6dcf2b273e5c4

update README

ddurandtibo committed 8 years ago
Unverified
91127e0517cae4ea42549d520b7a4c0abca6988c

initial commit

ddurandtibo committed 8 years ago
Unverified
71ccaed7aa4c5eccc2fcb1f90e66582d7cd20280

Initial commit

ddurandtibo committed 8 years ago

README

The README file for this repository.

Weakly Supervised Learning of ResNet

This implements weakly supervised learning of residual networks. This Torch implementation is based on fb.resnet.torch.

Download pretrained models

The download_pretrained_models script downloads pretrained models in data/pretrained_models directory.

th download_pretrained_models.lua

Packages

This implementation uses the following packages:

  • torch
  • nn
  • cunn
  • cudnn
  • optim
  • paths
  • csvigo
  • matio

You also need to install spatial-pooling.torch package to have spatial pooling modules.

Training

To train ResNet-101 with WELDON pooling on VOC 2007 dataset, run main.lua with

th main.lua -optim sgd -LR 1e-2 -netType resnet101-weldon -batchSize 40 -imageSize 224 -data /path_dataset/VOCdevkit/VOC2007/ -dataset voc2007-cls -loss MultiLabel -train multilabel -k 15 -nEpochs 20
  • LR: initial learning rate.
  • imageSize: size of the image.
  • batchSize: number of images per batch
  • k: number of regions for WELDON pooling.
  • nEpochs: number of training epochs.

To train ResNet-101 with GlobalMaxPooling on VOC 2007 dataset, run main.lua with

th main.lua -optim sgd -LR 1e-2 -netType resnet101-gmp -batchSize 40 -imageSize 224 -data /path_dataset/VOCdevkit/VOC2007/ -dataset voc2007-cls -loss MultiLabel -train multilabel -k 15 -nEpochs 20

To train ResNet-101 with GlobalAveragePooling on VOC 2007 dataset, run main.lua with

th main.lua -optim sgd -LR 1e-2 -netType resnet101-gap -batchSize 40 -imageSize 224 -data /path_dataset/VOCdevkit/VOC2007/ -dataset voc2007-cls -loss MultiLabel -train multilabel -k 15 -nEpochs 20

License

MIT License