RF loss

Open
#360 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with the training loop and the named entry points diffuser.forward_marginal, self.calc_loss, and compute_fape_losses. Trace whether indep is modified before FAPE evaluation and which structure each loss input represents. Done means documenting a clear explanation of the noising state and why indep is used in FAPE.

Written by the indexing model from the issue text.

Description

fape_kwargs = { 'masks_1d' : masks_1d,
'pred_in' : pred_in,
'indep' : indep,
'mask_crds' : fape_mask,
'fi_dev' : self.fi_dev,
'atom_frames' : atom_frames,
'sm_Ls' : sm_Ls,
'conf' : self.conf,
'diffusion_mask' : ~masks_1d['was_noised_in_3d']
}

        # some FAPE losses will often be NaN coming out of this function, b.c.
        # some fapes are undefined if e.g., no motif (unconditional) 
        fape_loss_dict, rmsd_dict = compute_fape_losses(**fape_kwargs)

Dear Developers,
Greetings, and thank you for your excellent work!
While studying the RF series, I encountered a few questions I would like to ask. During training, before computing the loss via self.calc_loss(indep, ...), the code runs:
indep.xyz = inddiffuser_out = diffuser.forward_marginal(indep.xyz, ...).xyz.to(gpu)
At this point, has indep been noised from the original structure?
Since FAPE is supposed to compare the clean (ground-truth) structure with the model-predicted structure, why is this indep—now potentially noised—still used in FAPE?
Also, in the training loop:

for loader_out in train_loader:
indep, rfi, ... = loader_out

Is the indep obtained here already noised? If so, why is it still used for FAPE computation?
I would greatly appreciate your insights on this.
Thank you very much, and wishing you all the best in both your work and life!

Dominant language
Python
Stars
3.1k
Forks
644
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RosettaCommons/RFdiffusion

All issues in RosettaCommons/RFdiffusion

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.