forked from pytorch/glow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ImageClassifier] Add command line option for the model's expected in…
…put image name *Description*: Models may expect different names for the input image in ImageClassifier. We previously had a hack that allowed for two different names. This properly allows the model to have its image name specified. *Testing*: updated and verified `run.sh` works *Documentation*: Added.
- Loading branch information
Showing
4 changed files
with
38 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to1 -m=resnet50 "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=neg128to127 -m=vgg19 "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=neg128to127 -m=squeezenet "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to256 -m=zfnet512 "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to1 -m=densenet121 "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to1 -m=shufflenet "$@" | ||
./bin/image-classifier tests/images/mnist/*.png -image_mode=0to1 -m=lenet_mnist "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to256 -m=inception_v1 "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to256 -m=bvlc_alexnet "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to1 -m=resnet50 -model_input_name=gpu_0/data "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=neg128to127 -m=vgg19 -model_input_name=data "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=neg128to127 -m=squeezenet -model_input_name=data "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to256 -m=zfnet512 -model_input_name=gpu_0/data "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to1 -m=densenet121 -model_input_name=data "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to1 -m=shufflenet -model_input_name=gpu_0/data "$@" | ||
./bin/image-classifier tests/images/mnist/*.png -image_mode=0to1 -m=lenet_mnist -model_input_name=data "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to256 -m=inception_v1 -model_input_name=data "$@" | ||
./bin/image-classifier tests/images/imagenet/*.png -image_mode=0to256 -m=bvlc_alexnet -model_input_name=data "$@" | ||
for png_filename in tests/images/imagenet/*.png; do | ||
./bin/image-classifier "$png_filename" -image_mode=0to1 -m=resnet50/model.onnx "$@" | ||
./bin/image-classifier "$png_filename" -image_mode=0to1 -m=resnet50/model.onnx -model_input_name=gpu_0/data_0 "$@" | ||
done | ||
for png_filename in tests/images/imagenet/*.png; do | ||
./bin/image-classifier "$png_filename" -image_mode=neg128to127 -m=vgg19/model.onnx "$@" | ||
./bin/image-classifier "$png_filename" -image_mode=neg128to127 -m=vgg19/model.onnx -model_input_name=data_0 "$@" | ||
done | ||
for png_filename in tests/images/imagenet/*.png; do | ||
./bin/image-classifier "$png_filename" -image_mode=neg128to127 -m=squeezenet/model.onnx "$@" | ||
./bin/image-classifier "$png_filename" -image_mode=neg128to127 -m=squeezenet/model.onnx -model_input_name=data_0 "$@" | ||
done | ||
for png_filename in tests/images/imagenet/*.png; do | ||
./bin/image-classifier "$png_filename" -image_mode=0to256 -m=zfnet512/model.onnx "$@" | ||
./bin/image-classifier "$png_filename" -image_mode=0to256 -m=zfnet512/model.onnx -model_input_name=gpu_0/data_0 "$@" | ||
done | ||
for png_filename in tests/images/imagenet/*.png; do | ||
./bin/image-classifier "$png_filename" -image_mode=0to1 -m=densenet121/model.onnx "$@" | ||
./bin/image-classifier "$png_filename" -image_mode=0to1 -m=densenet121/model.onnx -model_input_name=data_0 "$@" | ||
done | ||
./bin/image-classifier tests/images/imagenet/zebra_340.png -image_mode=0to1 -m=shufflenet/model.onnx "$@" | ||
./bin/image-classifier tests/images/imagenet/zebra_340.png -image_mode=0to1 -m=shufflenet/model.onnx -model_input_name=gpu_0/data_0 "$@" | ||
for png_filename in tests/images/mnist/*.png; do | ||
./bin/image-classifier "$png_filename" -image_mode=0to1 -m=mnist.onnx "$@" | ||
./bin/image-classifier "$png_filename" -image_mode=0to1 -m=mnist.onnx -model_input_name=data_0 "$@" | ||
done | ||
for png_filename in tests/images/imagenet/*.png; do | ||
./bin/image-classifier "$png_filename" -image_mode=0to256 -m=inception_v1/model.onnx "$@" | ||
./bin/image-classifier "$png_filename" -image_mode=0to256 -m=inception_v1/model.onnx -model_input_name=data_0 "$@" | ||
done | ||
for png_filename in tests/images/imagenet/*.png; do | ||
./bin/image-classifier "$png_filename" -image_mode=0to256 -m=bvlc_alexnet/model.onnx "$@" | ||
./bin/image-classifier "$png_filename" -image_mode=0to256 -m=bvlc_alexnet/model.onnx -model_input_name=data_0 "$@" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters