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

File not found error #5

Closed Joy-Cse closed 4 years ago

Joy-Cse commented 4 years ago

~\Videos\Traffic-Signal-Violation-Detection-System-master\object_detection.py in 409 410 # load the weights trained on COCO into the model --> 411 weight_reader = WeightReader(weights_path) 412 weight_reader.load_weights(yolov3) 413

~\Videos\Traffic-Signal-Violation-Detection-System-master\object_detection.py in init(self, weight_file) 8 class WeightReader: 9 def init(self, weight_file): ---> 10 with open(weight_file, 'rb') as w_f: 11 major, = struct.unpack('i', w_f.read(4)) 12 minor, = struct.unpack('i', w_f.read(4))

FileNotFoundError: [Errno 2] No such file or directory: 'yolov3.weights'

anmspro commented 4 years ago

Change the directory according to your hard-disk location. It will solve the problem. Kindly close the issue If the problem is solved.