-
3.3.1: Sample Run with MIGraphX
Click here to go back to the UIF User Guide home page.
This repo also contains a sample to run a demo application with MIGraphX. The demo loads a single image, infers on the image using an Imagenet trained model, and prints out the Top1 class.
- Run the following command to install OpenCV used by the sample:
pip install opencv-python
- To run the sample, change the directory to the
samples/migraphx
directory. Use the following command with the correct parameters:
python migx_sample.py \
--onnx_file <onnx_file> \
--image <image_file>
--onnx_file: name of an imagenet ONNX model file
--mxr_file: name of an MIGraphX YModel file
--image: name of input image file
Note: Either the --onnx_file
or --mxr_file
options should be given.
python migx_sample.py --onnx resnet50_fp32.onnx --image cow.jpg
UIF is licensed under Apache License Version 2.0. Refer to the LICENSE file for the full license text and copyright notice.
Contact [email protected] for questions, issues, and feedback on UIF.
Submit your questions, feature requests, and bug reports on the GitHub issues page.