WongKinYiu / PyTorch_YOLOv4

PyTorch implementation of YOLOv4
1.87k stars 585 forks source link

Evolution error (hyper-parameters evolution) #138

Open isaacpascal opened 3 years ago

isaacpascal commented 3 years ago

Hello Dear @WongKinYiu Thanks for this great work. I have trained my network with all models such as yolov4l, yolov4x, csp-p6 etc, when I try to evaluate the model, I get following error.

Traceback (most recent call last): File "train.py", line 515, in print_mutation(hyp, results, opt.bucket) File "/home/xx/Desktop/xxxx/PyTorch_YOLOv4-u5/utils/utils.py", line 841, in print_mutation b = '%10.3g' * len(hyp) % tuple(hyp.values()) # hyperparam values TypeError: must be real number, not str

Thanks in advance...

jaqub-manuel commented 3 years ago

@WongKinYiu Could you help to solve this ?

WongKinYiu commented 3 years ago

try to print hyp.values() and type of hyp.values().