-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Mask-RCNN tutorial one-line change suggestion #960
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
Comments
/assigntome |
Regarding this issue, |
This unfortunately won't work. We'll give half credit for the PR but it should not be merged. |
/assigntome |
|
I would like to suggest changing the labels in Mask-RCNN tutorial from
labels = torch.ones((num_objs,), dtype=torch.int64)
to the following:
label = torch.as_tensor(obj_ids, dtype=torch.int64)
that will work if there are more than 2 types of object instances (
num_objs
) in the image. In fact, the new form will give the same exact vector oflabels = torch.ones((num_objs,), dtype=torch.int64)
and will work for any number of object instances. I have tried it with a dataset containing 60 object instances and all went well.Kind regards
The text was updated successfully, but these errors were encountered: