mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
AlexNet
AlexNet Inference on CUDANet
Usage
- Export pytorch AlexNet weight pretrained on ImageNet (requires pytorch and torchvision):
python alexnet.py
-
Follow the instructions from repository root to build CUDANet library.
-
Build AlexNet (requires OpenCV for image loading and normalization)
mkdir build
cd build
cmake -S ..
make
- Run AlexNet inference
alexnet ../alexnet_weights.bin ../image.jpg