Skip to content

InferenceCommandLines

Valentina edited this page Nov 26, 2023 · 7 revisions

Examples of inference command lines

Here we represent typical command lines to execute inference using supported frameworks.

MXNet

python inference_mxnet_sync_mode.py --model_name mobilenetv2_1.0 --input ./data \
                                    --input_name data --input_shape 3 3 224 224 \
                                    --norm --mean 0.485 0.456 0.406 --std 0.229 0.224 0.225 \
                                    --batch_size 3 --labels labels/image_net_labels.json \
                                    --task classification --output_names output
python inference_mxnet_async_mode.py --model_name mobilenetv2_1.0 --input ./data \
                                     --input_name data --input_shape 3 3 224 224 \
                                     --norm --mean 0.485 0.456 0.406 --std 0.229 0.224 0.225 \
                                     --batch_size 3 --labels labels/image_net_labels.json \
                                     --task classification --output_names output
Clone this wiki locally