duan8/alexnet
Aditya Lohia e8653a776d
Add: AlexNet, MobileNetV3, DenseNet121 Python Network Definition API (#512)
* add: mobilenetv2 Python network definition API

* add: mobilenetv3 base code

* add: mobilenetv2 Python network definition API

* restructure: mobilenetv2 code

* add: Alexnet Python Network Definition API

* update: README according to new folder architecture

* add: mobilenetv3 small and large python network definition API

* add: DenseNet121 Python Network Definition API
2021-04-28 13:39:55 +08:00
..
alex.cpp fix 2020-11-06 23:39:30 +08:00
alexnet.py Add: AlexNet, MobileNetV3, DenseNet121 Python Network Definition API (#512) 2021-04-28 13:39:55 +08:00
CMakeLists.txt fix 2020-11-06 23:39:30 +08:00
logging.h fix 2020-11-06 23:39:30 +08:00
README.md transfer from gitlab 2019-11-25 02:55:45 +08:00

alexnet

AlexNet model architecture from the "One weird trick..." https://arxiv.org/abs/1404.5997`_ paper.

For the details, you can refer to pytorchx/alexnet

This alexnet is just several conv-relu-pool blocks followed by several fc-relu, nothing special. All layers can be implemented by tensorrt api, including addConvolution, addActivation, addPooling, addFullyConnected.

// 1. generate alexnet.wts from [pytorchx/alexnet](https://github.com/wang-xinyu/pytorchx/tree/master/alexnet)

// 2. put alexnet.wts into tensorrtx/alexnet

// 3. build and run

cd tensorrtx/alexnet

mkdir build

cd build

cmake ..

make

sudo ./alexnet -s   // serialize model to plan file i.e. 'alexnet.engine'

sudo ./alexnet -d   // deserialize plan file and run inference

// 4. see if the output is same as pytorchx/alexnet