Files
CUDANet/examples/alexnet/README.md

471 B

AlexNet

AlexNet Inference on CUDANet

Usage

  1. Export pytorch AlexNet weight pretrained on ImageNet (requires pytorch and torchvision):
python alexnet.py
  1. Follow the instructions from repository root to build CUDANet library.

  2. Build AlexNet (requires OpenCV for image loading and normalization)

mkdir build
cd build
cmake -S ..
make
  1. Run AlexNet inference
alexnet ../alexnet_weights.bin ../image.jpg