Coder Social home page Coder Social logo

Comments (10)

implus avatar implus commented on May 27, 2024
  1. I think one possible problem is that you may try to call iou_target.detach() for weighting the regression loss. It is easy to conduct the experiment by referring to the codes in this repo.
  2. In fact, the performances for "predicted score" and "calculated score" have no obvious differences in final performance. You can try either as you like.

from gfocal.

JyunYuLai avatar JyunYuLai commented on May 27, 2024

Hi,
Thank you for your quick response.

  1. I'm not sure if i understand your answer correctly. So in the FCOS experiment, we shouldn't normalize the regression loss by the iou target. The reason not to do this is because it may cause the initial training unstable ? please correct me if i'm wrong.
  2. Okay, thank you so much. I will give it a try.

from gfocal.

implus avatar implus commented on May 27, 2024
  1. We should normalize, but use a form like ``iou_target.detach()'' for normalizing as it contains predicted bounding box part which may introduce gradient propagation.

from gfocal.

JyunYuLai avatar JyunYuLai commented on May 27, 2024

Hi,
Yes, i already weighted the regression loss by iou target as FCOS did. In my FCOS IOU-branch experiment, it doesn't work. As training started, the iou target values are small(close to zero), probably because the initial prediction in regression branch is nothing. And then the iou branch tend to predict all zero iou value and then the training just failed. Did you use any trick like increase regression loss scale at the beginning of training ?

from gfocal.

implus avatar implus commented on May 27, 2024

It is a bit strange. In our experiments, we do nothing like increase regression loss scale at the beginning of training, and we do not observe training failures as you describe.

from gfocal.

JyunYuLai avatar JyunYuLai commented on May 27, 2024

Okay, thank you, so in your case, simply replace centerness branch to iou branch work, I will check my code if there is any problem.

from gfocal.

implus avatar implus commented on May 27, 2024

All right~

from gfocal.

chenxuheng1995 avatar chenxuheng1995 commented on May 27, 2024

I have the same question. When I replace the centerness target with the iou target, the regression loss and iou loss will all be zero. What's more, the giou loss cannot be calculated.

from gfocal.

implus avatar implus commented on May 27, 2024

You can simply run the code in this repo and carefully go through more details to check what is missing in your implementation.

from gfocal.

chenxuheng1995 avatar chenxuheng1995 commented on May 27, 2024

This is my label question. Thank you for your reply.

from gfocal.

Related Issues (20)

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.