title: Yolo-v3 object detection with python
body: <p>I'm trying to detect objects using Yolo-v3 referring <a href="https://towardsdatascience.com/an-introduction-to-implementing-the-yolo-algorithm-for-multi-object-detection-in-images-99cf240539" rel="nofollow noreferrer">this</a> tutorial. I have already installed darknet. </p>
  
  <p>When I tried to run the following code:</p>
  
  <pre><code>from darknet import Darknet
  </code></pre>
  
  <p>it says:</p>
  
  <blockquote>
    <p>ImportError: cannot import name 'Darknet' from 'darknet' (unknown location)</p>
  </blockquote>
  
  <p>so I tried: </p>
  
  <pre><code>import darknet as dn
  net = dn.load_net("cfg/tiny-yolo.cfg", "tiny-yolo.weights", 0)
  </code></pre>
  
  <p>then it says:</p>
  
  <blockquote>
    <p>"AttributeError: module 'darknet' has no attribute 'load_net'"</p>
  </blockquote>
  
  <p>How I can avoid these errors?</p>