title: Yolo to keras to coreml : get confidence and coordinates as outputs
body: <h2>❓Question</h2>
  
  <p>Hi,
  Following steps were taken</p>
  
  <ol>
  <li><p>I trained yolo tiny on a custom data set with just one class</p></li>
  <li><p>Converted .weights(darknet) to .h5 (keras) (verified and keras model is working fine as well)</p></li>
  <li><p>Now when I convert Keras to core ml model I am not getting coordinates and confidence as outputs</p></li>
  </ol>
  
  <p><strong>Command used to convert to core ml</strong></p>
  
  <pre><code>coremltools.converters.keras.convert(
  'model_data/yolo.h5',
   input_names='image',
   class_labels=output_labels,
   image_input_names='image',
   input_name_shape_dict={'image': [None, 416, 416, 3]}
   )
  </code></pre>
  
  <p>Though I have checked a third party Yolo model converted to core ml giving coordinates and confidence</p>
  
  <p>refer the screenshot:</p>
  
  <p><strong>3rd party Yolo model converted to core ml</strong></p>
  
  <p><a href="https://i.stack.imgur.com/W5Sda.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W5Sda.png" alt="enter image description here"></a></p>
  
  <p><strong>my Yolo model converted to core ml</strong></p>
  
  <p><a href="https://i.stack.imgur.com/QEjnc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QEjnc.png" alt="enter image description here"></a></p>
  
  <h2>System Information</h2>
  
  <ul>
  <li><p>Keras==2.1.5</p></li>
  <li><p>coremltools==3.3</p></li>
  </ul>