Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

How to predict prototype label without ground truth semantic label #6

Open
Anna0509 opened this issue Oct 1, 2021 · 2 comments
Open

Comments

@Anna0509
Copy link

Anna0509 commented Oct 1, 2021

Hi,
In "pyscripts/inference/prototype.py" (line 202), the ground truth "semantic label" is required to predict "prototype_labels". How can I get the prototype_labels if I only have partial (e.g. 10 pixels) ground truth "semantic label"?

@twke18
Copy link
Owner

twke18 commented Oct 1, 2021

The script assumes that you have per-pixel semantic segmentation labels. For inference under weakly-supervised settings, there are two steps: 1) using the learned features to propagate softmax classifier predictions (this line), 2) re-train (only) the softmax classifier (this line) for predict the semantic segmentation results (this line).

@jyhjinghwang
Copy link
Collaborator

@Anna0509
Have you successfully done predictions w/o any labeled set with the instructions that @twke18 provided?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants