title: Retrain image detection with MobileNet
body: <p>Several ways of retraining MobileNet for use with Tensorflow.js have failed for me. Is there any way to use a retrained model with Tensorflow.js?</p>
  
  <p>Both using the modern, hub-based tutorial, as well as using <code>retrain.py</code> seem to fail.</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/55829593/convert-output-of-retrain-py-to-tensorflow-js">Convert output of retrain.py to tensorflow.js</a></li>
  <li><a href="https://stackoverflow.com/questions/55490885/error-converting-keras-model-to-tfjs-duplicate-weight-name-variable">Error converting keras model to tfjs: duplicate weight name Variable</a></li>
  </ul>
  
  <p>as well as some other open questions</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/52050178/retrain-an-image-classifier-in-tensorflow-js">Retrain an Image Classifier in tensorflow js</a></li>
  <li><a href="https://stackoverflow.com/questions/54392232/loading-of-mobilenet-v2-works-but-pretrained-mobilenet-v2-fails">Loading of mobilenet v2 works, but pretrained mobilenet v2 fails</a></li>
  <li><a href="https://stackoverflow.com/questions/55321145/cant-convert-tensorflow-saved-model-to-tfjs-layers-model-webmodel">Can&#39;t convert TensorFlow saved model to tfjs_layers_model webmodel</a></li>
  </ul>
  
  <p>The top two other questions show the code that failed in both instances, both are unsolved.</p>
  
  <p>The aim is to load the mobilenet, retrain using custom data, and use it in Tensorflow.js. Following both tutorials seem to fail. Could this be done inside node.js? Is there another way? Where did I make mistakes (or is the software unable to use retrained models)? How can this work?</p>
  
  <p>EDITs: <a href="https://github.com/tensorflow/tfjs/issues/1576" rel="noreferrer">latest github issue</a> and one more question</p>