Sanster / pytorch-tensor-decompositions

PyTorch implementation of [1412.6553] and [1511.06530] tensor decomposition methods for convolutional layers.

Home Page:https://jacobgil.github.io/deeplearning/tensor-decompositions-deep-learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyTorch Tensor Decompositions

This is an implementation of Tucker and CP decomposition of convolutional layers. A blog post about this can be found here.

It depends on TensorLy for performing tensor decompositions.

Usage

  1. Train a VGG11 model:
python3 main.py 
--net vgg11 \
--save_dir models/vgg11
  1. Fine tune with decomposed model:
python3 main.py 
--ckpt /path/to/trained_model.pth \
--save_dir models/vgg11_decomposed \
--decompose  \
--decompose_method tucker \
--learning_rate 0.0001

TODO: make fine tune decompose work

References

About

PyTorch implementation of [1412.6553] and [1511.06530] tensor decomposition methods for convolutional layers.

https://jacobgil.github.io/deeplearning/tensor-decompositions-deep-learning


Languages

Language:Python 100.0%