title: Why is YOLOv5 using CUDA when i have specified CPU?
body: <p>When i load a model with YOLOv5 and specify <code>'cpu'</code>, yolo is still using <code>'gpu'</code>. Why?</p>
  <p>The code:</p>
  <pre><code>model = yolov5.load(model, device='cuda' if torch.cuda.is_available() else 'cpu')
  </code></pre>
  <pre><code>print('cuda' if torch.cuda.is_available() else 'cpu')
  </code></pre>
  <p>prints <code>cpu</code></p>
  <p>It is always writing the following message into the console which is quite annoying:</p>
  <pre><code>UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
    warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling')
  </code></pre>