Code Monkey home page Code Monkey logo

Comments (5)

toomy0toons avatar toomy0toons commented on July 22, 2024

try reducing batch size and gradient clipping as sgrvinod noted

im using batch size 8 and gradient clipping value 1

from a-pytorch-tutorial-to-object-detection.

anesh-ml avatar anesh-ml commented on July 22, 2024

@toomy0toons Thanks for the response. I found that log of negative decimal in the cxcy_to_gcxgcy function gives nan values.. I have to make them absolute to give proper values. How come you did not get any nan values?. If the input to the log function is negative decimal it gives nan.

from a-pytorch-tutorial-to-object-detection.

toomy0toons avatar toomy0toons commented on July 22, 2024

@Eloneinstein
center cords should be positive as it measures distance in ratio so the function should always return positive.
are you using a custom dataset?
if so match the input to xmin,ymin,xmax,ymax. Same error happened to me when i was feeding different dataset which is was xmax,ymin, xmin, ymax

from a-pytorch-tutorial-to-object-detection.

anesh-ml avatar anesh-ml commented on July 22, 2024

@toomy0toons . I am using the same VOC 2007 dataset. I will check for the order of the coordinates. What is the loss value you were getting?

from a-pytorch-tutorial-to-object-detection.

anesh-ml avatar anesh-ml commented on July 22, 2024

@toomy0toons . Thanks a lot for the solution. I put the coordinates in the wrong order. Thanks again.

from a-pytorch-tutorial-to-object-detection.

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.