simonduerr commited on
Commit
c45f6d1
1 Parent(s): 40e9a56

Update ProteinMPNN/vanilla_proteinmpnn/protein_mpnn_utils.py

Browse files
ProteinMPNN/vanilla_proteinmpnn/protein_mpnn_utils.py CHANGED
@@ -733,8 +733,9 @@ class ProteinFeatures(nn.Module):
733
  return RBF_A_B
734
 
735
  def forward(self, X, mask, residue_idx, chain_labels):
736
- if int(self.augment_eps) > 0:
737
- X = X + self.augment_eps * torch.randn_like(X)
 
738
 
739
  b = X[:,:,1,:] - X[:,:,0,:]
740
  c = X[:,:,2,:] - X[:,:,1,:]
 
733
  return RBF_A_B
734
 
735
  def forward(self, X, mask, residue_idx, chain_labels):
736
+ if self.augment_eps !='':
737
+ if int(self.augment_eps) > 0:
738
+ X = X + self.augment_eps * torch.randn_like(X)
739
 
740
  b = X[:,:,1,:] - X[:,:,0,:]
741
  c = X[:,:,2,:] - X[:,:,1,:]