Code Monkey home page Code Monkey logo

Comments (4)

JonathanCMitchell avatar JonathanCMitchell commented on June 8, 2024

Or maybe that's not the case but for some reason I can't make it converge when that line is there.

from rotated_iou.

lilanxiao avatar lilanxiao commented on June 8, 2024

hi, I don't think that line is a bug.

intersection_3d = iou_2d * u * z_overlap

The iou_2d is multiplied with the union to get the area of the 2D intersection. Then, the area multiplied with the overlap in the z-axis makes the volume of the 3D intersection.

The non-convergence might be caused by something else. What loss value do you get, when you have a convergence issue?

I previously got NaN when I use this IoU-loss to train 3D detectors. The reason is, the functions which calculate the IoU and IoU-losses assume that the size of boxes is always positive. But sometimes, the network might predict non-positive values (e.g. if a fully connected layer without activation is used for box size regression, the predicted values are not limited). In this case, the functions might generate a crazy gradient and eventually break the training. The solution is simply limiting the range of box sizes in the network. I never have any convergence issue again after doing it.

from rotated_iou.

JonathanCMitchell avatar JonathanCMitchell commented on June 8, 2024

How do you limit the range of box sizes in the network? Also are you able to guarantee the orientation? I see my orientation is either 180 degrees out of sync or I grow width, height, length in the negative direction.

from rotated_iou.

lilanxiao avatar lilanxiao commented on June 8, 2024

I just add something like sizes = torch.max(sizes, 1e-6) to force sizes to be positive.
I have read #19 I think the misalignment of corners is an intended feature of IoU-loss.

from rotated_iou.

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.