Tensorflow Node-js, TypeError: Only HTTP(S) protocols are supported
问题 I am trying to load a local tensorflowjs model on my Node server but am getting the error: UnhandledPromiseRejectionWarning: TypeError: Only HTTP(S) protocols are supported. This is how I am importing the Tensorflowjs packages: const tf = require('@tensorflow/tfjs'); require('@tensorflow/tfjs-node'); global.fetch = require('node-fetch') and loading the model like this: const ssd_model_path = 'file://models/ssd_model/model.json' this.model = await tf.loadLayersModel(ssd_model_path); My