当前位置: 首页 > news >正文

RFdiffusion Sampler类 sample_step 方法解读

Sampler类的sample_step 方法的主要目的是根据扩散模型的预测生成在时间步 t-1 上的下一个三维结构、序列和其他相关特征。这是扩散采样过程的核心步骤之一。

源代码:

    def sample_step(self, *, t, x_t, seq_init, final_step):'''Generate the next pose that the model should be supplied at timestep t-1.Args:t (int): The timestep that has just been predictedseq_t (torch.tensor): (L,22) The sequence at the beginning of this timestepx_t (torch.tensor): (L,14,3) The residue positions at the beginning of this timestepseq_init (torch.tensor): (L,22) The initialized sequence used in updating the sequence.Returns:px0: (L,14,3) The model's prediction of x0.x_t_1: (L,14,3) The updated positions of the next step.seq_t_1: (L,22) The updated sequence of the next step.tors_t_1: (L, ?) The updated torsion angles of the next  step.plddt: (L, 1) Predicted lDDT of x0.'''msa_masked, msa_full, seq_in, xt_in, idx_pdb, t1d, t2d, xyz_t, alpha_t = self._preprocess(seq_init, x_t, t)N,L = msa_masked.shape[:2]if self.symmetry is not None:idx_pdb, self.chain_idx = self.symmetry.res_idx_procesing(res_idx=idx_pdb)msa_prev = Nonepair_prev = Nonestate_prev = Nonewith torch.no_grad():msa_prev, pair_prev, px0, state_prev, alpha, logits, plddt = self.model(msa_masked,msa_full,seq_in,xt_in,
http://www.lryc.cn/news/507640.html

相关文章:

  • Flutter组件————FloatingActionButton
  • 算法学习(十六)—— 综合练习
  • kratos源码分析:熔断器
  • CTF_1
  • 【系统】Mac crontab 无法退出编辑模式问题
  • K8s中 statefulset 和deployment的区别
  • springboot中的AOP以及面向切面编程思想
  • 降低Mobx技术债问题-React前端数据流方案调研整理
  • RabbitMQ消息可靠性保证机制7--可靠性分析-rabbitmq_tracing插件
  • SQL进阶技巧:如何求解直接线上最多的点数?
  • 【老白学 Java】泛型应用 - 卡拉 OK(四)
  • android studio更改应用图片,和应用名字。
  • SQL Server 表值函数使用示例
  • SpringBoot项目的创建方式
  • 微服务设计(第2版)读书笔记
  • idea无法识别文件,如何把floder文件恢复成model
  • vscode的keil assistant 中搜索不到全局变量
  • html+css网页设计 美食 餐饮杰12个页面
  • 重撸设计模式--代理模式
  • Redis性能调优:深入剖析变慢原因及应对策略
  • Python联合Halcon的详细教程
  • raid 状态查看 storcli64
  • 时间管理系统|Java|SSM|JSP|
  • 使用Docker启用MySQL8.0.11
  • Qt之修改窗口标题、图标以及自定义标题栏(九)
  • 每天40分玩转Django:Django测试
  • JS子页面调用父页面函数,监听刷新事件
  • Element@2.15.14-tree checkStrictly 状态实现父项联动子项,实现节点自定义编辑、新增、删除功能
  • 详细介绍如何使用rapidjson读取json文件
  • 【Qt】显示类控件:QLabel、QLCDNumber、QProgressBar、QCalendarWidget