Skip to content

Latest commit

 

History

History
 
 

mobileone

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

MobileOne

Input

Input

Ailia input shape : (1, 3, 256, 256)

Output

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

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 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.

Reference

A PyTorch implementation of MobileOne

IMAGENET

ImageNet 1000 (mini)

Model Format

ONNX opset = 11

Framework

Pytorch 1.11.0

Netron

mobileone_s0.onnx.prototxt

mobileone_s1.onnx.prototxt

mobileone_s2.onnx.prototxt

mobileone_s3.onnx.prototxt

mobileone_s4.onnx.prototxt