title: Tensorflow Node-js, TypeError: Only HTTP(S) protocols are supported
body: <p>I am trying to load a local tensorflowjs model on my Node server but am getting the error:</p>
  
  <pre><code>UnhandledPromiseRejectionWarning: TypeError: Only HTTP(S) protocols are supported.
  </code></pre>
  
  <p>This is how  I  am importing the Tensorflowjs packages:</p>
  
  <pre><code>const tf = require('@tensorflow/tfjs');
  require('@tensorflow/tfjs-node');
  
  global.fetch = require('node-fetch')
  </code></pre>
  
  <p>and loading the model like this:</p>
  
  <pre><code>const ssd_model_path =
      'file://models/ssd_model/model.json'
  
  this.model = await tf.loadLayersModel(ssd_model_path);
  </code></pre>
  
  <p>My dependencies are as follows:</p>
  
  <pre><code>"dependencies": {
      "@tensorflow/tfjs": "^1.5.2",
      "@tensorflow/tfjs-core": "^1.2.11",
      "@tensorflow/tfjs-node": "^1.2.3",
      "electron-reload": "^1.5.0",
      "esm": "^3.2.25",
      "jimp": "^0.9.3",
      "node-fetch": "^2.6.0"
    }
  </code></pre>