ghimiredhikura / Complex-YOLOv3

PyTorch implementation of Complex-YOLO paper with YoloV3
GNU General Public License v3.0
190 stars 68 forks source link

AttributeError: 'NoneType' object has no attribute 'shape' #49

Open GUZ-lkc2018 opened 4 years ago

GUZ-lkc2018 commented 4 years ago

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?

DeepLil commented 2 years ago

hello @GUZ-lkc2018 , did this issue resolved? I'm facing the same issue.. Could you please help me? @ghimiredhikura