First of all, thank you very much for sharing the code.When I run python test_detection.py --weights_path=checkpoints/yolov3_ckpt_epoch-298.pth --model_def=config/complex_yolov3.cfg --folder=training --split=valid
Namespace(class_path='data/classes.names', conf_thres=0.5, folder='training', img_size=608, model_def='config/complex_yolov3.cfg', nms_thres=0.5, split='valid', weights_path='checkpoints/yolov3_ckpt_epoch-298.pth')
Load TEST samples from data/KITTI/object/training
Done: total TEST samples 1481
FPS: 6.50
Traceback (most recent call last):
File "test_detection.py", line 172, in
objects_pred = predictions_to_kitti_format(img_detections, calib, img2d.shape, opt.img_size)
AttributeError: 'NoneType' object has no attribute 'shape'
How can I solve this problem? Can you give me some advices?
First of all, thank you very much for sharing the code.When I run python test_detection.py --weights_path=checkpoints/yolov3_ckpt_epoch-298.pth --model_def=config/complex_yolov3.cfg --folder=training --split=valid Namespace(class_path='data/classes.names', conf_thres=0.5, folder='training', img_size=608, model_def='config/complex_yolov3.cfg', nms_thres=0.5, split='valid', weights_path='checkpoints/yolov3_ckpt_epoch-298.pth') Load TEST samples from data/KITTI/object/training Done: total TEST samples 1481 FPS: 6.50 Traceback (most recent call last): File "test_detection.py", line 172, in
objects_pred = predictions_to_kitti_format(img_detections, calib, img2d.shape, opt.img_size)
AttributeError: 'NoneType' object has no attribute 'shape'
How can I solve this problem? Can you give me some advices?