我按照this guide中的步骤将预训练的keras模型转换为与Tensorflow.js一起使用 现在,当我尝试使用以下命令将其导入javascript时 const model = tf.loadModel("{% static "keras/model.json" %}"); 出现以下错误: Uncaught (in promise) Error: Unknown layer: GaussianNoiseThe layer is defined in Python, in which
我正在使用Tensorflow.js加载一个简单的tf.loadLayersModel()模型,但是模型没有构建。我正在使用Functional来构建模型,但只由密集的层组成。与Lambda层类似的错误,但我只在Tf.js中使用了两个密集层和功能层。Error: Unknown layer: Functional.The layer is defined in Python, in which case it needs to be ported to <e
我在python中通过tensorflow训练了一个模型,使用了结合到模型层中的图像增强。但是,当我将经过训练的模型转换为tensorflow.js (model.json)并运行它时,出现了一个错误:
jquery-3.3.1.slim.min.js:2 Uncaught Error: UnknownThe layer is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript