Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
6 years ago | |
|---|---|---|
| .. | ||
| scripts | 6 years ago | |
| src | 6 years ago | |
| Readme.md | 6 years ago | |
| eval.py | 6 years ago | |
| train.py | 6 years ago | |
MobileNetV2 is tuned to mobile phone CPUs through a combination of hardware- aware network architecture search (NAS) complemented by the NetAdapt algorithm and then subsequently improved through novel architecture advances.Nov 20, 2019.
Paper Howard, Andrew, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang et al. "Searching for MobileNetV2." In Proceedings of the IEEE International Conference on Computer Vision, pp. 1314-1324. 2019.
The overall network architecture of MobileNetV2 is show below:
Dataset used: imagenet
├── MobileNetV2
├── Readme.md
├── scripts
│ ├──run_train.sh
│ ├──run_eval.sh
├── src
│ ├──config.py
│ ├──dataset.py
│ ├──luanch.py
│ ├──lr_generator.py
│ ├──mobilenetV2.py
├── train.py
├── eval.py
# training example
Ascend: sh run_train.sh Ascend 8 192.168.0.1 0,1,2,3,4,5,6,7 ~/imagenet/train/
Training result will be stored in the example path. Checkpoints will be stored at . /checkpoint by default, and training log will be redirected to ./train/train.log like followings.
epoch: [ 0/200], step:[ 624/ 625], loss:[5.258/5.258], time:[140412.236], lr:[0.100]
epoch time: 140522.500, per step time: 224.836, avg loss: 5.258
epoch: [ 1/200], step:[ 624/ 625], loss:[3.917/3.917], time:[138221.250], lr:[0.200]
epoch time: 138331.250, per step time: 221.330, avg loss: 3.917
# infer example
Ascend: sh run_infer.sh Ascend ~/imagenet/val/ ~/train/mobilenet-200_625.ckpt
checkpoint can be produced in training process.
Inference result will be stored in the example path, you can find result like the followings in val.log.
result: {'acc': 0.71976314102564111} ckpt=/path/to/checkpoint/mobilenet-200_625.ckpt
| Parameters | MobilenetV2 | MobilenetV2 Quant |
|---|---|---|
| Resource | Ascend 910 cpu:2.60GHz 56cores memory:314G |
Ascend 910 cpu:2.60GHz 56cores memory:314G |
| uploaded Date | 05/06/2020 | 06/12/2020 |
| MindSpore Version | 0.3.0 | 0.3.0 |
| Dataset | ImageNet | ImageNet |
| Training Parameters | src/config.py | src/config.py |
| Optimizer | Momentum | Momentum |
| Loss Function | CrossEntropyWithLabelSmooth | CrossEntropyWithLabelSmooth |
| Loss | 200 epoch:1.913 | 50 epoch:1.912 |
| Train Accuracy | ACC1[77.09%] ACC5[92.57%] | ACC1[77.09%] ACC5[92.57%] |
| Eval Accuracy | ACC1[77.09%] ACC5[92.57%] | ACC1[77.09%] ACC5[92.57%] |
| Total time | 48h | 12h |
| Checkpoint | / | mobilenetv2.ckpt |
| Parameters | Ascend 910 | Ascend 310 | Nvidia V100 |
|---|---|---|---|
| uploaded Date | 06/12/2020 | ||
| MindSpore Version | 0.3.0 | ||
| Dataset | ImageNet, 1.2W | ||
| batch_size | |||
| outputs | |||
| Accuracy | |||
| Speed | |||
| Total time | |||
| Model for inference |
MindSpore is a new open source deep learning training/inference framework that could be used for mobile, edge and cloud scenarios.
C++ Python Text Unity3D Asset C other