question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How does same class different instances distinguished?

See original GitHub issue

image

I logged out sizes of output:

INFO 12.22 11:31:34 demo.py:65: boxes: (15, 4)
INFO 12.22 11:31:34 demo.py:66: masks: torch.Size([15, 720, 1280])
INFO 12.22 11:31:34 demo.py:67: scores: (15,)

Seems every mask contains more than one instance.

This got a situation that, some mask didn’t have mask related with it:

image

how to remove those separate masks that does instance or does have box related with it?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dbolyacommented, Jan 24, 2020

This is the kind of output you get when you don’t crop the resulting masks. The model is trained with cropping, so it leverages that fact and doesn’t bother segmenting out instances that are on the other side of the image for instance.

What it’s learned is that it only needs to supress instance boundaries when boxes overlap, which is exactly what you’re seeing in that image (notice the masks of different colors stop at the boundaries between objects). Essentially, the model doing as little instance segmentation as it can get away with and it lets cropping do the rest. Naturally, there will be errors but that’s life ¯\_(ツ)_/¯

Make sure you crop before you visualize.

0reactions
seawater668commented, Sep 7, 2020

@dbolya

How to label a single category with labelme? After looking at the user-defined data set, there is no annotation naming method. For example, there is only one category in a graph: cat, cat, cat or CAT1, cat2, Cat3 or cat-0, cat-1, cat

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to distinguish between objects of the same class with ...
So, anything you do with the instance found in a variable only depends on the instance's class, not on the variable's declared type....
Read more >
Understanding Class Members (The Java™ Tutorials ...
Class Variables. When a number of objects are created from the same class blueprint, they each have their own distinct copies of instance...
Read more >
Can objects constructed from the same class have unique ...
Look in your code for groups of classes that differ only by one method. Look for classes whose sole purpose is combining two...
Read more >
Instances of a Class - Python Like You Mean It
Let's create another instance of Dummy . It is important to understand that this new instance is distinct from the one that we...
Read more >
Javanotes 9, Section 5.1 -- Objects, Instance Methods, and ...
Objects are closely related to classes. We have already been working with classes for several chapters, and we have seen that a class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found