Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inference_demo.inpynb D2Det-instance-res101.pth error #13

Closed
zgq91 opened this issue Aug 27, 2020 · 2 comments
Closed

inference_demo.inpynb D2Det-instance-res101.pth error #13

zgq91 opened this issue Aug 27, 2020 · 2 comments

Comments

@zgq91
Copy link

zgq91 commented Aug 27, 2020

Hi:
感谢开源,当我使用inference_demo.ipynb代码是 checkpoint 的模型D2Det-instance-res101.pth 会报以下的错误"d2det\mmdet\apis\inference.py", line 169, in show_result
img[mask] = img[mask] * 0.5 + color_mask * 0.5
IndexError: boolean index did not match indexed array along dimension 2; dimension is 3 but corresponding boolean dimension is 19"

@JialeCao001
Copy link
Owner

@zgq91 Hi. The problem has been fixed. Please update the functions in mmdet/apis/inference.py.

def show_result(img,

def show_result_pyplot(img,

You can also use our newly provided file to show or save detection results of a single image: demo/D2Det_demo.py. Please refer to README for the usage.

@zgq91
Copy link
Author

zgq91 commented Aug 27, 2020

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants