Giter VIP home page Giter VIP logo

hierloss's People

Contributors

jkvt2 avatar

Stargazers

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

Watchers

 avatar

hierloss's Issues

One hot encoded labels or logits?

Hi, thanks for the loss implementation.
I am bit confused here. I know that labels are one hot encoded before we calculate the loss, I would also like to know if the logits are also in the form of one-hot encoding?

tf.nn.softmax(logits[:, subsoftmax_idx[i]: subsoftmax_idx[i + 1]]) \

PS: My final class prediction is equal to the number of classes, and I can use cross_entropy to calculate a loss in the normal case. If I use this hierarchical loss how are the predictions expected for the loss calculation? Is it a single value or a len(num_classes)?

Yolo9000 model implementation

@jkvt2 Thanks for the loss functionality.

Could you please let me know which yolo9000 implementation did you follow? I don't find any yolo9k implementation. Thanks.

Pytorch implementation

Hi @jkvt2
I am trying to have this loss function in pytorch but somehow I am stuck at this point and can't figure out what's the issue.

I get this error: RuntimeError: Index tensor must have the same number of dimensions as input tensor in below line. Do you have any idea about how this works in pytorch?

probs = tf.concat([tf.reduce_prod(tf.gather(raw_probs, p, axis = 1),

Thanks

Testing the loss

@jkvt2
I am here again with one more doubt.
While testing, why do you just pass the children? Don't we need predictions for parent objects as well? or it's handled in the code which I don't understand?

pred_class = interpret(r, num_root, children)

full test

Great jobs!
Which yolo9000 implementation to work/test with?

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.