Coder Social home page Coder Social logo

Comments (9)

wubaoyuan avatar wubaoyuan commented on May 18, 2024

@alexliyang Please wait for our arxiv manuscript, which will provide a detailed definition of the loss function.

from tencent-ml-images.

alexliyang avatar alexliyang commented on May 18, 2024

thx a lot

Now I want to train a classical model, samples do not use bbox , only classic labels, how to use your loss function?

Thanks

from tencent-ml-images.

wubaoyuan avatar wubaoyuan commented on May 18, 2024

@alexliyang In the provided code, we also didn't use bbox. So you can directly copy the code of the loss function. Our Arxiv manuscript is expected to be released in one week.

from tencent-ml-images.

alexliyang avatar alexliyang commented on May 18, 2024

OK, thanks, I will use this loss to train my model.

and another question: my class_num is 10, whether I should add 1 to class_num i.e. class_num = 11 when I train the model or not ? and in fact i only have 10 classes sample data.

Thanks

from tencent-ml-images.

wubaoyuan avatar wubaoyuan commented on May 18, 2024

@alexliyang You mean adding a rejection class? We have not tried that. The main difficulty may be how to obtain the training sample for the rejection class. If you train with 10 classes, if the posteriors of all classes are lower than a threshold, it can be considered as rejection.

from tencent-ml-images.

alexliyang avatar alexliyang commented on May 18, 2024

@wubaoyuan thanks, although I do not understand your loss function , now I copy it and use it to train my model, I find that ,the every step loss value and mean loss value are smaller than the value from softmax_cross_entropy_with_logits function, but the test acc is not better than using softmax_cross_entropy_with_logits function.
Maybe I used it not correctly

from tencent-ml-images.

Jason-xin avatar Jason-xin commented on May 18, 2024

@wubaoyuan Have you Arxiv manuscript been released?

from tencent-ml-images.

wubaoyuan avatar wubaoyuan commented on May 18, 2024

@Jason-xin Already finished, in proof-reading. Maybe one week.

from tencent-ml-images.

WillLiGitHub avatar WillLiGitHub commented on May 18, 2024

you can see the function: torch.nn.BCEWithLogitsLoss()

from tencent-ml-images.

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.