msracver / FCIS

Fully Convolutional Instance-aware Semantic Segmentation
MIT License
1.57k stars 415 forks source link

Error when test #62

Open fanq15 opened 7 years ago

fanq15 commented 7 years ago

I train with VOC dataset, and turn the object mask to binary mask(foreground and background) When I test, it give me this error.

Traceback (most recent call last):
  File "fcis/test.py", line 54, in <module>
    main()
  File "fcis/test.py", line 51, in main
    args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path)
  File "/home/cv/FCIS/fcis/function/test_fcis.py", line 71, in test_fcis
    pred_eval(predictor, test_data, imdb, config, vis=vis, ignore_cache=ignore_cache, thresh=thresh, logger=logger)
  File "/home/cv/FCIS/fcis/core/tester.py", line 138, in pred_eval
    cfg.BINARY_THRESH)
  File "/home/cv/FCIS/fcis/../lib/mask/mask_transform.py", line 204, in gpu_mask_voting
    inds = nms(dets)
  File "/home/cv/FCIS/fcis/../lib/nms/nms.py", line 20, in _nms
    return gpu_nms(dets, thresh, device_id)
  File "gpu_nms.pyx", line 24, in gpu_nms.gpu_nms (gpu_nms.cpp:1753)
IndexError: index 4 is out of bounds for axis 1 with size 4
tensorboy commented 7 years ago

Could you please print the shape of the relative matrix?