Skip to content

Conversation

@iProzd
Copy link
Collaborator

@iProzd iProzd commented Mar 19, 2024

This PR updates the loss interface to allow for a more flexible design.
It enables processing input tensors before feeding them into the model, such as denoising operations (fyi @Chengqian-Zhang ). Previously, this was done in the data loader, which was less intuitive and more confusing. Now, users can easily handle these tasks within the loss function itself, as demonstrated in similar implementations in uni-mol: https://github.com/dptech-corp/Uni-Mol/blob/main/unimol/unimol/losses/unimol.py#L20.

@codecov
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.50%. Comparing base (be95d09) to head (cb1adaf).

Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #3569   +/-   ##
=======================================
  Coverage   77.49%   77.50%           
=======================================
  Files         432      432           
  Lines       37164    37169    +5     
  Branches     1620     1620           
=======================================
+ Hits        28801    28806    +5     
  Misses       7495     7495           
  Partials      868      868           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@njzjz
Copy link
Member

njzjz commented Mar 19, 2024

Could you make an explanation why it needs to change the interface?

@iProzd
Copy link
Collaborator Author

iProzd commented Mar 20, 2024

Could you make an explanation why it needs to change the interface?

I've updated the comment.

@iProzd iProzd requested a review from njzjz March 20, 2024 01:33
@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Mar 20, 2024
Merged via the queue into deepmodeling:devel with commit 71ec631 Mar 20, 2024
@iProzd iProzd deleted the rf_loss branch March 28, 2024 07:40
@njzjz njzjz mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants