title: Custom Image segmentation has different results on different model loads Pixellib
body: <p>I am doing custom image segmentation using PixelLib.</p>
  <pre><code>import pixellib
  from pixellib.instance import custom_segmentation
  
  segment_image = custom_segmentation()
  segment_image.inferConfig(num_classes= 1, class_names= [&quot;BG&quot;, &quot;road&quot;])
  segment_image.load_model(&quot;/content/mask_rcnn_model.143-0.199986.h5&quot;)
  segment_image.segmentImage(&quot;/content/FullTrainingData/Warlick.PNG&quot;, show_bboxes=False, output_image_name=&quot;a0000sample_out&quot; + str(i) +&quot;.PNG&quot;)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/pL4eN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pL4eN.jpg" alt="enter image description here" /></a></p>
  <p>The segmentation looks good on my machine, but running it on another machine with the same h5 file  the result is far worse</p>
  <p><a href="https://i.stack.imgur.com/piF65.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/piF65.jpg" alt="enter image description here" /></a></p>
  <p>The result differs each time I reload the model. Any reason this could be happening?</p>