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

unable to detect objects #110

Closed
patricxu opened this issue Oct 19, 2021 · 2 comments
Closed

unable to detect objects #110

patricxu opened this issue Oct 19, 2021 · 2 comments

Comments

@patricxu
Copy link

I use the following code to do segmentation but all it output is a "bottle"

import pixellib
from pixellib.torchbackend.instance import instanceSegmentation

ins = instanceSegmentation()
ins.load_model("pointrend_resnet50.pkl")
target_classes = ins.select_target_classes(person = True)
ins.segmentImage("image.jpg", show_bboxes=True, segment_target_classes = target_classes, output_image_name="output_image.jpg")

I got the model from PointRend

The outcome I got is
image

even no objects got segmented on some input images.

The following message is the output from my terminal

image

@ayoolaolafenwa
Copy link
Owner

ayoolaolafenwa commented Oct 19, 2021

@patricxu Are you sure that this is the output image it produced? I tested the same image and I got the desired result. What pytorch version are you using?

a

@patricxu
Copy link
Author

thanks! I upgraded torch to 1.9 then fix the issue

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