title: How to train a custom Object detector from scratch in tensorflow.js?
body: <p>I followed multiple example, to train a custom object detector in TensorflowJS . The main problem I am facing every where it is using pretrained model. </p>
  
  <p>Pretrained models are fine for general use cases, but custom scenario it fails. For example, <a href="https://github.com/tensorflow/tfjs-examples/tree/master/simple-object-detection" rel="nofollow noreferrer">take this</a> this is example form official Tensorflowjs examples, here it is  using mobilenet, and mobilenet and mobilenet has image size restriction 224x224 which defeats all the purpose, because my images are big and also not of same ratio so resizing is not an option.</p>
  
  <p>I have tried multiple example, all follows same path oneway or another.</p>
  
  <p>What I want ?
  Any example by which I can train a custom objector from scratch in Tensorflow.js.</p>
  
  <p>Although the answer sounds simple but trust me I searching for this for multiple days. Any help will be greatly  appreciated. Thanks </p>