-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Loss functions in quickvision #43
Comments
Do we include Below is a part of
I will start working on this simultaneously, if it is up for grabs. 😄 |
Yes ! I was about to tell about these. Reduction can be P.S. We also keep consistent with torchvision and if it gets a losses API we will support only other losses. P.P.S. Up For Grabs !! |
What should be the structure for these losses? I can think of these three ways:
|
@zhiqwang you are welcome to contribute 😄 |
Hi @oke-aditya , I'm looking for anything I can do in this vigorous repo 🚀 |
Join on Slack here All the development talks go here ! You can freely communicate your ideas, RFCs and thoughts. |
Each loss in separate file is better This keeps abstraction minimal. If We could create a folder called Also, should we implement losses as Classes / functions ? If we implement as Eg.
I think we should follow that and provide a functional API too (if possible) Losses tied to models can be implemented as mixture of both. Since their use will be only with the model. I propose to keep API Simple.
Thoughts @zhiqwang @hassiahk @ramaneswaran ? |
I agree with implementing losses as both
I did not get this part. How are we avoiding by naming the folder as
|
If we call our folder as |
Based on whatever we discussed above, I will start working on this and let's see how it goes. |
@oke-aditya, are we implementing all the losses mentioned in the initial comment? |
Yes 😀 |
🚀 Feature
Frequently re-used losses that can be added.
Motivation
Writing Losses is quite repetitive. PyTorch supports losses which are written with deep interoperability with C++ API. But most research losses aren't.
These losses are building blocks for other complicates losses as well.
Pitch
A non-exhaustive and probable list of losses that are not PyTorch but used often.
Alternatives
Wait for them to reach into fvcore or PyTorch. Till then we keep duplicating these code for models.
Additional context
Note, if we are re-using implementation from any repo. Please cite them on top of code.
The text was updated successfully, but these errors were encountered: