title: "ValueError: cannot reshape array of size 278540 into shape (256,128,3,3)" Conversion YOLOv3 .weights to .pb
body: <p>I have trained a YOLO v3 Object Detection Model. To incorporate into my flutter application I am trying to convert it to .tflite, with .pb needed as intermediate. I am getting this error with every github repo I have tried. (A few linked below)</p>
  <p>Error: ValueError: cannot reshape array of size 278540 into shape (256,128,3,3)</p>
  <p>Following is what my classes.names file looks like:</p>
  <p><a href="https://i.stack.imgur.com/T7FGb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T7FGb.png" alt="enter image description here" /></a></p>
  <p>I have just 2 classes. I am unable to convert. Can someone please help?</p>
  <p>Link to my weights and config file:</p>
  <ul>
  <li><p>Weights: <a href="https://drive.google.com/file/d/1dqKHqzaqhHuxO5wuW9mgIeCbor9NyTMh/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/1dqKHqzaqhHuxO5wuW9mgIeCbor9NyTMh/view?usp=sharing</a></p>
  </li>
  <li><p>Cfg: <a href="https://drive.google.com/file/d/1_e607nkMTObKlYUCQc8IZtXMsUKJ_aab/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/1_e607nkMTObKlYUCQc8IZtXMsUKJ_aab/view?usp=sharing</a></p>
  </li>
  </ul>
  <p>A few repos that I have tried:</p>
  <ul>
  <li><a href="https://github.com/benjamintanweihao/YOLOv3" rel="nofollow noreferrer">https://github.com/benjamintanweihao/YOLOv3</a></li>
  <li><a href="https://github.com/hunglc007/tensorflow-yolov4-tflite" rel="nofollow noreferrer">https://github.com/hunglc007/tensorflow-yolov4-tflite</a></li>
  <li><a href="https://github.com/mystic123/tensorflow-yolo-v3?fbclid=IwAR0ojevKaFH2EIQvxmMfSgLPm9Mz9V_e_5E621BEckgGb-FpvuS7ZLcM7NI" rel="nofollow noreferrer">https://github.com/mystic123/tensorflow-yolo-v3?fbclid=IwAR0ojevKaFH2EIQvxmMfSgLPm9Mz9V_e_5E621BEckgGb-FpvuS7ZLcM7NI</a></li>
  <li><a href="https://github.com/peace195/tensorflow-lite-YOLOv3" rel="nofollow noreferrer">https://github.com/peace195/tensorflow-lite-YOLOv3</a></li>
  <li><a href="https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects" rel="nofollow noreferrer">https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects</a></li>
  <li><a href="https://github.com/zzh8829/yolov3-tf2" rel="nofollow noreferrer">https://github.com/zzh8829/yolov3-tf2</a></li>
  <li><a href="https://github.com/mystic123/tensorflow-yolo-v3" rel="nofollow noreferrer">https://github.com/mystic123/tensorflow-yolo-v3</a></li>
  </ul>