baidu88vip
baidu88vip
OpenCV-Python-Tutorial/ch09-图像的基础操作/9.split_color.py # b,g,r=cv2.split(img)#比较耗时的操作,请使用numpy 索引 img=cv2.merge(b,g,r) 改为(缺少一对括号) # b,g,r=cv2.split(img)#比较耗时的操作,请使用numpy 索引 img=cv2.merge((b,g,r))
报错内容 ===== Detecting objects: 100% 42/42 [01:02
Traceback (most recent call last): File "normal_prune.py", line 28, in model.load_state_dict(torch.load(opt.model, map_location=device)['model']) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 839, in load_state_dict self.__class__.__name__, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for Darknet: size mismatch for...