
Traceback (most recent call last):


 "/home/shaoxiang/miniconda3/envs/shenlanVenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1539, in _run_ninja_build

env=env)


 "/home/shaoxiang/miniconda3/envs/shenlanVenv/lib/python3.6/subprocess.py", line 438, in run

output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

Traceback (most recent call last):


 "demo.py", line 75, in <module>

results = model.detect([image])


 "/phd/pytorch-mask-rcnn/model.py", line 1598, in detect

detections, mrcnn_mask = self.predict([molded_images, image_metas], mode='inference')


 "/phd/pytorch-mask-rcnn/model.py", line 1673, in predict

detections = detection_layer(self.config, rpn_rois, mrcnn_class, mrcnn_bbox, image_metas)


 "/phd/pytorch-mask-rcnn/model.py", line 841, in detection_layer

detections = refine_detections(rois, mrcnn_class, mrcnn_bbox, window, config)


 "/phd/pytorch-mask-rcnn/model.py", line 786, in refine_detections

keep = torch.nonzero(keep_bool)[:,0]


 "/home/xyc/anaconda3/envs/map-seg-py35/lib/python3.5/site-packages/torch/autograd/variable.py", line 78, in __getitem__

return Index.apply(self, key)


 "/home/xyc/anaconda3/envs/map-seg-py35/lib/python3.5/site-packages/torch/autograd/_functions/tensor.py", line 89, in forward

result = i.index(ctx.index)
IndexError: trying to index 2 dimensions of a 0 dimensional tensor
