anmspro / Traffic-Signal-Violation-Detection-System

A Computer Vision based Traffic Signal Violation Detection System from video footage using YOLOv3 & Tkinter. (GUI Included)
GNU General Public License v3.0
438 stars 166 forks source link

AttributeError: 'NoneType' object has no attribute 'get_weights' #8

Closed dongle329 closed 2 years ago

dongle329 commented 3 years ago

Hello, when I run the following error occurred

Traceback (most recent call last): File "D:/traffic recognition/Traffic-Signal-Violation-Detection-System-master/Project-GUI.py", line 4, in import object_detection as od File "D:\traffic recognition\Traffic-Signal-Violation-Detection-System-master\object_detection.py", line 412, in weight_reader.load_weights(yolov3) File "D:\traffic recognition\Traffic-Signal-Violation-Detection-System-master\object_detection.py", line 40, in load_weights size = np.prod(norm_layer.get_weights()[0].shape) AttributeError: 'NoneType' object has no attribute 'get_weights'

May I ask what this is about

anmspro commented 2 years ago

Faced similar issue while I was working due to a version mismatch. I hope this thread in stackoverflow helps.