Ailia input shape : (1, 3, 256, 256)
Output is as below.
==============================================================
class_count=3
+ idx=0
category=409[analog clock ]
prob=8.907513618469238
+ idx=1
category=892[wall clock ]
prob=5.874444961547852
+ idx=2
category=826[stopwatch, stop watch ]
prob=4.234994411468506
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 mobileone.py
If you want to specify the input image, put the image path after the --input option.
$ python3 mobileone.py --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 mobileone.py --video VIDEO_PATH
You can select a model from s0 | s1 | s2 | s3 | s4
by adding --model option.
A PyTorch implementation of MobileOne
ONNX opset = 11
Pytorch 1.11.0