我正在尝试将 CoreML 3 的新功能“可更新模型”应用到我的应用程序中,但是我还没有弄清楚。
我使用 Keras 创建了一个有两层的神经网络,并将其转换为 Core ML 模型。然后我将模型包含在我的 iOS 项目中。
然而,self.testmodel.model.modelDescription.isUpdatable
总是为 false,我无法理解苹果文档的内容。
model = Sequential([
Dense(10, activation="sigmoid", input_shape=(2,)),
Dense(2, activation="relu"),
])
core_mlmodel = coremltools.converters.keras.convert(model)
core_mlmodel.save("FirstNN.mlmodel")
Swift中已经集成了Model,但无法更新它
let testmodel = FirstNN()
try testmodel.prediction(input: input) // works
testmodel.model.modelDescription.isUpdatable // is false
我的模型为什么不能更新,我该如何更改?
3.0b5
。这很有道理。非常感谢。 - Seb