cvToolkit icon indicating copy to clipboard operation
cvToolkit copied to clipboard

Issue with demo.py

Open KristianDukov opened this issue 5 years ago • 1 comments

Traceback (most recent call last):
  File "demo.py", line 408, in <module>
    light_track_camera(pose_estimator, video_capture)
  File "demo.py", line 111, in light_track_camera
    human_candidates = get_human_bbox(cur_img, yolo_model)
  File "demo.py", line 57, in get_human_bbox
    bboxs, probs = inference(image, model)
  File "C:\Pytorch\cvToolkit\pose_track\lighttrack\human_detector.py", line 137, in inference
    im_dim_list = torch.index_select(im_dim_list, 0, output[:,0].long())
TypeError: 'NoneType' object is not subscriptable

When trying to run it on a video

KristianDukov avatar Sep 01 '19 16:09 KristianDukov

bboxs, probs = inference(image, model) try to print the image, I guess the image is None.

lxy5513 avatar Sep 02 '19 03:09 lxy5513