菜鸟教程小白 发表于 2022-12-12 13:33:38

ios - 将 Google 的 SavedModel 转换为 Apple 的 mlmodel


                                            <p><p>本周苹果<a href="https://developer.apple.com/wwdc17/703" rel="noreferrer noopener nofollow">announced</a>支持经过训练的 ML 模型。</p>

<p>如何将经过训练的 Tensorflow 模型(SavedModel 格式的 Google Cloud 机器学习引擎模型)转换为 Apple <a href="https://developer.apple.com/documentation/coreml" rel="noreferrer noopener nofollow">Core ML</a>模型(.mlmodel 格式)?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>这取决于您的 TensorFlow 模型包含什么。 coremltools 不支持 TensorFlow,因此您必须编写自己的转换器。但这仅在您的模型仅包含 mlmodel 格式支持的内容时才有效。您可以从 coremltools 网页下载此格式的规范。由于可以在 TensorFlow 中构建任意复杂度的计算图,因此 coremltools 目前不支持它也就不足为奇了(因为 mlmodel 本身只支持有限数量的模型类型)。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 将 Google 的 SavedModel 转换为 Apple 的 mlmodel,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/44462823/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/44462823/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 将 Google 的 SavedModel 转换为 Apple 的 mlmodel