I use the pretrained weight to infer,but got the following error:
Traceback (most recent call last):
File "inference_demo.py", line 15, in
show_result(img, result, model.CLASSES, score_thr=0.25, out_file="demo_out.jpg")
File "/home/work/deep_learning/instance_segmentation/SOLOv2/mmdet/apis/inference.py", line 154, in show_result
for i, bbox in enumerate(bbox_result)
File "/home/work/deep_learning/instance_segmentation/SOLOv2/mmdet/apis/inference.py", line 154, in
for i, bbox in enumerate(bbox_result)
AttributeError: 'tuple' object has no attribute 'shape'
the inference code I use is modified from inference_demo.ipynb
pls,I can train normally.
I use the pretrained weight to infer,but got the following error:
Traceback (most recent call last): File "inference_demo.py", line 15, in
show_result(img, result, model.CLASSES, score_thr=0.25, out_file="demo_out.jpg")
File "/home/work/deep_learning/instance_segmentation/SOLOv2/mmdet/apis/inference.py", line 154, in show_result
for i, bbox in enumerate(bbox_result)
File "/home/work/deep_learning/instance_segmentation/SOLOv2/mmdet/apis/inference.py", line 154, in
for i, bbox in enumerate(bbox_result)
AttributeError: 'tuple' object has no attribute 'shape'
the inference code I use is modified from inference_demo.ipynb pls,I can train normally.