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

No code implementation about discriminative loss ? #104

Open
LiZhenLiangLee opened this issue Feb 23, 2021 · 2 comments
Open

No code implementation about discriminative loss ? #104

LiZhenLiangLee opened this issue Feb 23, 2021 · 2 comments

Comments

@LiZhenLiangLee
Copy link

Section 3.4 in your TPAMI version paper, Learning Category Consistent Features
Is there any code for this part ?

@wqhIris
Copy link

wqhIris commented Mar 22, 2021

I was also wondering this,
Is it possible for providing the implementation of this discriminative loss?

@ShinoSpace
Copy link

@LiZhenLiangLee @wqhIris Here's my guess.
The original paper published in TPAMI seems not strict enough to illustrate the implement detail. In fact, from this code, i find this model is a encoder-only model rather than auto-encoder like UNet. The upsample is simple bilinear interpolation, and the upsampled feature is the final segmentation result. Therefore, this main problem to implement the loss function proposed in Learning Category Consistent Features section is there's no feature embedding to "pull" and "push"(i.e. the loss component $L_var$ and $L_dis$).
Here's what i have tried.
I tried to re-implement this metric loss by adding bilinear interpolation followed by a 1x1 conv to the ccnet, while also code the loss function to optimize the feature(embedding) output from 1x1 conv. In fact, i found this loss is not easy to implement, and the training loss of my task seems a little unstable(but actually in convergence). I don't know whether the author of this repo also noticed this problem.

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