Machine Learning Benchmark Tool (ML Bench) (AI Benchmark Tool)
Supported models :
- MobileNet v1
- MobileNet v2
- Inception v3
- Resnet v2 50
- SSD Mobilenet v1 (Object Detection)
Supported runtime :
- Tensorflow Lite
- Tensorflow Mobile
- Android NN
- SNPE (for Qualcomm)
SideLoad Support:
How to side load your model :
1. Convert your model to tflite (using toco) or dlc (using snpe conversion tool).
2. On your local machine, create [Model Name] directory
3. Copy your model file to the directory created in step 2
4. Create a file called meta-data.json in the [Model Name] directory
example of meta-data.json :
{
"xres" : 299,
"yres" : 299,
"depth" : 3,
"input_type" : "float",
"output_type" : "float",
"input_name" : "input:0",
"output_name" : "InceptionV3/Predictions/Reshape_1:0",
"image_mean" : 0,
"image_std" : 0,
"accelerator":"dsp",
}
5. push [Model Name] directory to the target device using below command
adb push ./[Model Name] /sdcard/Android/data/com.etinum.mlbench/files/models/
စက်သင်ယူခြင်း Benchmark Tool ကို (ML Bench) (AI အ Benchmark Tool ကို)
ထောကျပံ့မော်ဒယ်များ:
- MobileNet V1
- MobileNet v2
- စတင်ဖွဲ့စည်း v3
- Resnet v2 50
- SSD ကို Mobilenet V1 (ထောက်လှမ်း Object)
ထောကျပံ့ runtime:
- Tensorflow Lite ကို
- Tensorflow မိုဘိုင်း
- အန်းဒရွိုက် NN
- (Qualcomm မှများအတွက်) SNPE
SideLoad ပံ့ပိုး:
ဘယ်လိုသင့်ရဲ့မော်ဒယ် load ဘက်မှ:
1. သင့်ရဲ့မော်ဒယ် (toco သုံးပြီး) tflite သို့မဟုတ် DLC (snpe ပြောင်းလဲခြင်း tool ကိုသုံးပြီး) မှပြောင်း။
သင့် local machine ဖန်တီး [မော်ဒယ်အမည်] directory ကိုတွင် 2.
3. ခြေလှမ်း 2 မှာ created directory ကိုရန်သင့်မော်ဒယ်ဖိုင်ကိုကော်ပီကူးပါ
4. [မော်ဒယ်အမည်] directory ထဲတွင် Meta-data.json ဟုခေါ်တွင်ဖိုင်တစ်ဖိုင်ဖန်တီးပါ
Meta-data.json ၏ဥပမာ:
{
"xres": 299,
"yres": 299,
"အတိမ်အနက်": 3,
"input_type": "float"
"output_type": "float"
"input_name": "input ကို: 0",
"output_name": "InceptionV3 / ဟောကိန်းများ / Reshape_1: 0",
"image_mean": 0,
"image_std": 0,
"accelerator": "DSP"
}
command ကိုအောက်တွင်ဖော်ပြထားသော အသုံးပြု. ပစ်မှတ်ကိရိယာ 5. တွန်းအားပေး [မော်ဒယ်အမည်] directory ကို
adb တွန်းအားပေး ./[Model အမည်] /sdcard/Android/data/com.etinum.mlbench/files/models/