我按照this guide中的步骤将预训练的keras模型转换为与Tensorflow.js一起使用 现在,当我尝试使用以下命令将其导入javascript时 const model = tf.loadModelThe layer is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScriptat models.
我在python中通过tensorflow训练了一个模型,使用了结合到模型层中的图像增强。但是,当我将经过训练的模型转换为tensorflow.js (model.json)并运行它时,出现了一个错误:
jquery-3.3.1.slim.min.js:2 Uncaught Error: UnknownThe layer is defined in Pyt