我的应用程序不能一直连接互联网,如何从本地磁盘加载训练好的bodypix模型?nodejs代码片段
const net = await bodyPix.load({
architecture: 'MobileNetV1',
outputStride: 16,
multiplier: 0.75,
quantBytes: 2,
});
在README.md中我发现
modelUrl - 指定模型的自定义url的可选字符串。 这对本地开发或没有访问>到GCP上托管的模型的国家很有用。
你能不能给我一个例子,本地模型的url是什么? 以及 dest模型的内容是什么(BTW:我怎么能下载训练好的模型?非常感谢!
如果你希望能够像App一样离线使用JavaScript,你应该研究一下Progressive Web Apps。
https:/www.smashingmagazine.com201608a-beginners-guide-to-progressive-web-apps
https:/developer.mozilla.orgen-USdocsWebProgressive_web_appsOffline_Service_workers。