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

About pixcontrast loss #29

Open
jsjy1 opened this issue May 11, 2023 · 1 comment
Open

About pixcontrast loss #29

jsjy1 opened this issue May 11, 2023 · 1 comment

Comments

@jsjy1
Copy link

jsjy1 commented May 11, 2023

Thank you very much for your work. After reading the code, I have a question.
In the paper, the final loss consists of $l_{pixcontrast}, l_{pixpro} and l_{instance}$.
But In the Pixpro.py, I just find the $l_{pixpro}$:

        # compute loss
        loss = regression_loss(pred_1, proj_2_ng, coord1, coord2, self.pixpro_pos_ratio) \
            + regression_loss(pred_2, proj_1_ng, coord2, coord1, self.pixpro_pos_ratio)

and $l_{instance}$:

      loss_instance = self.regression_loss(pred_instance_1, proj_instance_2_ng) + \
                   self.regression_loss(pred_instance_2, proj_instance_1_ng)

So I wonder where $l_{pixcontrast}$ is, do I understand wrong or where to see the negligence?

@jsjy1
Copy link
Author

jsjy1 commented May 12, 2023

It seems that I misunderstood when I read the paper.

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

1 participant