ayooshkathuria / pytorch-yolo-v3

A PyTorch implementation of the YOLO v3 object detection algorithm
3.3k stars 1.06k forks source link

Type Error in Darknet.py #149

Open HansiIMW opened 4 years ago

HansiIMW commented 4 years ago

Hello everybody, I get the following error when starting cam_demo.py, and I do not understand what is happening here:

Traceback (most recent call last): File "cam_demo.py", line 90, in <module> model = Darknet(cfgfile) File "/home/hansi/Documents/librealsense/wrappers/python/examples/darknet.py", line 294, in __init__ self.net_info, self.module_list = create_modules(self.blocks) File "/home/hansi/Documents/librealsense/wrappers/python/examples/darknet.py", line 157, in create_modules if (x["type"] == "net"): KeyError: 'type'

Pytorch=1.7 python=3.7 opencv is installed etc.