(Image from https://github.com/pytorch/hub/raw/master/images/dog.jpg)
Shape : (1,3,224,224)
+ idx=0
category=258[Samoyed ]
prob=0.9123759269714355
+ idx=1
category=259[Pomeranian ]
prob=0.030867546796798706
+ idx=2
category=261[keeshond ]
prob=0.024926669895648956
Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.
For the sample image,
$ python3 wide_resnet50.py
If you want to specify the input image, put the image path after the --input
option.
$ python3 wide_resnet50 --input IMAGE_PATH
By adding the --video
option, you can input the video.
If you pass 0
as an argument to VIDEO_PATH, you can use the webcam input instead of the video file.
$ python3 wide_resnet50.py --video VIDEO_PATH
PYTORCH HUB FOR RESEARCHERS - WIDE RESNET
Pytorch
ONNX opset = 11