-
Notifications
You must be signed in to change notification settings - Fork 35
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
how to display masked result image? #11
Comments
mask_val = result['mask'][0]
mask_image = mask_val.astype(np.uint8) * 255 |
edit required in forward.py? where? |
mask_val = r['mask'][0] Traceback (most recent call last): |
|
mask_val = r['mask'][0] but error is Traceback (most recent call last): Invalid number of channels in input image: |
convert it to |
above line is working but, I have to show a masked image on my input image like this: |
from forward import ForwardModel frozen_graph_path = "/home/deepedge/mask_rcnn-master/mask_dent_frozen_graph.pb" assign your own Config classfrom config import mask_config forward_model = ForwardModel(frozen_graph_path, my_config) def test_one_image(image): if name == "main": i have used There is a function called "display_instances" in the script "mrcnn/visualize.py" to visualize the results : |
i am getting results like this, but how to display the result of image?
[{'rois': array([[244, 287, 590, 721],
[216, 737, 426, 925]], dtype=int32), 'class': array([1, 1], dtype=int32), 'scores': array([0.9834276 , 0.76979005], dtype=float32), 'mask': array([[[False, False],
[False, False],
[False, False],
...,
[False, False],
[False, False],
[False, False]],
@bendangnuksung @buaacarzp
The text was updated successfully, but these errors were encountered: