Skip to content

Latest commit

 

History

History
 
 

wide_resnet50

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Wide Resnet50

Input

Input

(Image from https://github.com/pytorch/hub/raw/master/images/dog.jpg)

Shape : (1,3,224,224)

Output

+ idx=0
  category=258[Samoyed ]
  prob=0.9123759269714355
+ idx=1
  category=259[Pomeranian ]
  prob=0.030867546796798706
+ idx=2
  category=261[keeshond ]
  prob=0.024926669895648956

Usage

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

Reference

PYTORCH HUB FOR RESEARCHERS - WIDE RESNET

Framework

Pytorch

Model Format

ONNX opset = 11

Netron

wide_resnet50_2.onnx.prototxt