jkvt2 / hierloss Goto Github PK
View Code? Open in Web Editor NEWHierarchical Loss function
Hierarchical Loss function
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?
Line 27 in dc22dbb
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)
?
@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.
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?
Line 29 in dc22dbb
Thanks
Great jobs!
Which yolo9000 implementation to work/test with?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.