RFdiffusion icon indicating copy to clipboard operation
RFdiffusion copied to clipboard

AttributeError: 'SelfConditioning' object has no attribute 'idx_pdb'

Open mxue316 opened this issue 3 months ago • 2 comments

Hi All! I met a problem when I tried to run the design_macrocyclic_binder.sh in the example directory of rfdiffusion, Any advise?Thanks for any reply!

Error executing job with overrides: ['inference.output_prefix=./outputs/diffused_binder_cyclic2', 'inference.num_designs=10', 'contigmap.contigs=[12-18 A3-117/0]', 'inference.input_pdb=./input_pdbs/7zkr_GABARAP.pdb', 'inference.cyclic=True', 'diffuser.T=50', 'inference.cyc_chains=a', "ppi.hotspot_res=['A51','A52','A50','A48','A62','A65']", 'preprocess.str_self_cond=False'] Traceback (most recent call last): File "/mnt/elements/protein_design/RFdiffusion1/20250927/RFdiffusion/examples/../scripts/run_inference.py", line 144, in main idx_pdb=sampler.idx_pdb AttributeError: 'SelfConditioning' object has no attribute 'idx_pdb'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

mxue316 avatar Sep 28 '25 15:09 mxue316

Thank you for bringing this up! This is actually a bug introduced from a recent merge. I just created PR #409 that introduces a fix. We should get a permanent fix merged soon.

woodsh17 avatar Sep 29 '25 18:09 woodsh17

Thanks a lot. After adding ({"idx_pdb": sampler.idx_pdb} if hasattr(sampler, "idx_pdb") else {}), the issue was resolved.

mxue316 avatar Oct 02 '25 14:10 mxue316