WongKinYiu / yolov7

Implementation of paper - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors
GNU General Public License v3.0
13.33k stars 4.2k forks source link

BUG with `--evolve` from missing #676

Open LukeAI opened 2 years ago

LukeAI commented 2 years ago

If you run with --evolve

After the first iteration, (because then evolve.txt can be found)

Traceback (most recent call last):
  File "train.py", line 689, in <module>
    v = (g * (npr.random(ng) < mp) * npr.randn(ng) * npr.random() * s + 1).clip(0.3, 3.0)
ValueError: operands could not be broadcast together with shapes (30,) (31,)

A possible fix is discussed and implemented https://github.com/WongKinYiu/yolov7/pull/675

LukeAI commented 2 years ago

results.txt

Update: having tried the above, it seems that there is some deeper problem with evolve, subsequent iterations give really poor results.