AttributeError: 'SelfConditioning' object has no attribute 'idx_pdb'
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.
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.
Thanks a lot. After adding ({"idx_pdb": sampler.idx_pdb} if hasattr(sampler, "idx_pdb") else {}), the issue was resolved.