在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):apple/ml-mobileone开源软件地址(OpenSource Url):https://github.com/apple/ml-mobileone开源编程语言(OpenSource Language):Swift 52.6%开源软件介绍(OpenSource Introduction):MobileOne: An Improved One millisecond Mobile BackboneThis software project accompanies the research paper, An Improved One millisecond Mobile Backbone. Our model achieves Top-1 Accuracy of 75.9% under 1ms. Model ZooImageNet-1K
*Latency measured on iPhone 12 Pro. UsageTo use our model, follow the code snippet below, import torch
from mobileone import mobileone, reparameterize_model
# To Train from scratch/fine-tuning
model = mobileone(variant='s0')
# ... train ...
# Load Pre-trained checkpoint for fine-tuning
checkpoint = torch.load('/path/to/unfused_checkpoint.pth.tar')
model.load_state_dict(checkpoint)
# ... train ...
# For inference
model.eval()
model_eval = reparameterize_model(model)
# Use model_eval at test-time To simply evaluate our model, use the fused checkpoint where branches are re-parameterized. import torch
from mobileone import mobileone
model = mobileone(variant='s0', inference_mode=True)
checkpoint = torch.load('/path/to/checkpoint.pth.tar')
model.load_state_dict(checkpoint)
# ... evaluate/demo ... ModelBench AppAn iOS benchmark app for MobileOne CoreML models. See ModelBench for addition details on building and running the app. CitationIf our code or models help your work, please cite our paper: @article{mobileone2022,
title={An Improved One millisecond Mobile Backbone},
author={Vasu, Pavan Kumar Anasosalu and Gabriel, James and Zhu, Jeff and Tuzel, Oncel and Ranjan, Anurag},
journal={arXiv preprint arXiv:2206.04040},
year={2022}
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论