mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
28 lines
471 B
Markdown
28 lines
471 B
Markdown
# AlexNet
|
|
|
|
AlexNet Inference on CUDANet
|
|
|
|
## Usage
|
|
|
|
1. Export pytorch AlexNet weight pretrained on ImageNet (requires pytorch and torchvision):
|
|
|
|
```sh
|
|
python alexnet.py
|
|
```
|
|
|
|
2. Follow the instructions from repository root to build CUDANet library.
|
|
|
|
3. Build AlexNet (requires [OpenCV](https://opencv.org/) for image loading and normalization)
|
|
|
|
```sh
|
|
mkdir build
|
|
cd build
|
|
cmake -S ..
|
|
make
|
|
```
|
|
|
|
4. Run AlexNet inference
|
|
|
|
```sh
|
|
alexnet ../alexnet_weights.bin ../image.jpg
|
|
``` |