GithubHelp home page GithubHelp logo

slryou41 / anchorloss Goto Github PK

View Code? Open in Web Editor NEW
53.0 3.0 4.0 15 KB

Implementation of "Anchor Loss: Modulating loss scale based on prediction difficulty"

License: Apache License 2.0

Python 100.00%
anchor-loss loss

anchorloss's People

Contributors

slryou41 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

anchorloss's Issues

Some question about paper

Hi, thanks for your awesome work!
I have one question when reading paper. In human pose estimation training, it said

Note that we put sigmoid activation layer on top of the standard architecture to perform classifacation.

The question is, how you process learning label? do you use gaussian heatmap or circle plate as used in grmi?

Much thanks!

Please revise your code

Dear Authors,
with all respect to your work, based on my experiments I feel that eighter the presented text in the paper does not reflect the reality or the code that you have published contain bugs. For the purpose of empirical comparison with the other loss functions for my research I have tried to train Resnet50 on Cifar10, with the warm-up, without, with commenting log.sum(1), with clamping log(1 - pt)... in all cases, the loss is going to nan... Moreover, I can see in the issues that its not only for me, its common, no one can use the proposed loss and Im not even talking about improvements...
It is very frustrating to see that the research publish in such a high venue as ICCV is not only not reproducible but just simply not working (at least implementation provided by the authors).

Question on the logpt_neg param

I read your paper on anchor loss with curiosity.
Right now I'm trying to implement the code using tensorflow, and I came up with some questions.

  1. For logpt_neg, you calculated F.logsigmoid(1-input), but as far as I understand, if the input parameter is non-sigmoid logits, then it should be torch.log(1-sig(input)), isn't it?

  2. Did you experience any 'NaN' loss problem during training? if you did, what was your solution for the problem?

How to use AnchorLoss in Pose estimation

thanks for your sharing.
Could you tell me how to apply the anchor loss in pose estimation?

My input is heatmap, it's shape : N, C, H, W. and my target also is N, C, H, W.

And, how to apply the anchor loss in pose estimation?

looking forward your reply!

how to apply in Pose Estimation?

thx for your sharing
could you please tell me how to apply anchor loss in pose estimation?
i try to use MSELoss multiply by anchor_weight which is :
anchor_weight = torch.where(
torch.eq(targets, 0),
torch.pow(1 + predictions - pt_pos, gamma),
torch.full_like(targets,1)
)
the result is unideal..

Loss is 'Nan'

Hi, thanks for your work.
I used this anchor loss in my project to do classification job, I have tried set warmup = False and warmup = True, after several epochs, both loss become Nan. I have changed nothing in the source code anchor_loss.py. So, could you please give me some advice how can I fix it? The loss when setting warmup = True like this:

Selection_297

Thanks a lot!

Loss is too big

Hi I troubled with loss is NAN(first epoch loss is 5021 ,it is too large).Can you give me some advices?
Thanks very much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.