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

Why using cls labels to generate CAMs at inference time? Is it valid? #16

Closed
Siyuan-Zhou opened this issue Oct 27, 2020 · 4 comments
Closed

Comments

@Siyuan-Zhou
Copy link

Siyuan-Zhou commented Oct 27, 2020

At val / test time, in infer_SEAM.py (line 79 to line 82), you use GT cls labels to choose CAMs of these categories and save these specified CAMs as .npy files. I am wondering whether using GT cls labels at inference time is valid in weakly-supervised semantic segmentation. Could you provide me with some hints? Much thanks!

@YudeWang
Copy link
Owner

Hi @Siyuan-Zhou ,
Because the generated is pseudo labels on train set. There is another retrain step to train segmentation model on these pseudo labels in fully supervised manner.

@Siyuan-Zhou
Copy link
Author

@YudeWang Thanks for your quick reply! I exactly know that you use your generated pseudo segmentation masks to train a segmentation model separately. However, what I am talking about is that in the inference stage you use ground truth category-level labels (i.e. cls labels) to select CAMs, see infer_SEAM.py (line 79 to line 82). I am wondering whether ground truth category-level labels (i.e. cls labels) can be used during inference.

@Siyuan-Zhou Siyuan-Zhou changed the title Why using GT image labels to generate CAMs / segmentation masks at inference time? Is it valid? Why using cls labels to generate CAMs at inference time? Is it valid? Oct 28, 2020
@bityangke
Copy link

@Siyuan-Zhou
it does inference on the train set
not the test set

@Siyuan-Zhou
Copy link
Author

@bityangke Thanks.

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

3 participants