hankerkuo / Vehicle-Front-Rear-Detection-for-License-Plate-Detection-Enhancement

A Network for detecting and classifying vehicle's front and rear
MIT License
38 stars 17 forks source link

Error in running Front_Rear_Detect.py #5

Open quicktwit opened 3 years ago

quicktwit commented 3 years ago

Hi I ran Front_Rear_Detect.py on Google Colab using: !python2.7 Front_Rear_Detect.py and I am getting this error:

Traceback (most recent call last):
  File "Front_Rear_Detect.py", line 58, in <module>
    FRs, cate = fr_detect(img)
TypeError: 'NoneType' object is not iterable
            detecting front and rear using FRD..., Model: data/FRD/FRNet_YOLOv3.cfg
            FR detection failed

Can you tell me how to fix this. Thank you

KoSweet commented 9 months ago

Hi, @quicktwit fr_detect function does not return any value if detection failed. So, None Type Object was returned.