Skip to content

PyTorch code for the paper "CrossTransformers: spatially-aware few-shot transfer"

License

Notifications You must be signed in to change notification settings

skrish13/CrossTransformers-PyTorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrossTransformers-PyTorch

Unofficial PyTorch implementation

CrossTransformers

Main contributions

  • CrossTransformers Architecture
  • SimCLR episodes

Implementation details

  • Resnet34, output feature map 14x14 by using dilated conv
  • Higher image resolution (224x224)
  • Strong data augmentation following [2]
  • Normalized gradient descent
  • 50% episodes of uniform category sampling
  • First step: Pretraining feature extractor on train categories, early stop by linear classifier accuracy on validation categories.

TODO

  • CTX sanity check on miniImagenet
  • CTX on Meta-Dataset [1]
  • CTX + SimCLR Eps
  • CTX + SimCLR Eps + Aug

Acknowledgements

  • miniImagenet experiments based out of DN4 codebase.

References

[1] Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples.

[2] Optimized generic feature learning for few-shot classification across domains.

About

PyTorch code for the paper "CrossTransformers: spatially-aware few-shot transfer"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages