Skip to content

Commit

Permalink
fix quaternion update
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Aug 9, 2021
1 parent b88e9e3 commit c39e31e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alphafold2_pytorch/alphafold2.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def forward(
quaternion_update, translation_update = self.to_quaternion_update(single_repr).chunk(2, dim = -1)
quaternion_update = F.pad(quaternion_update, (1, 0), value = 1.)

quaternions = quaternions + quaternion_multiply(quaternions, quaternion_update)
quaternions = quaternion_multiply(quaternions, quaternion_update)
translations = translations + einsum('b n c, b n c r -> b n r', translation_update, rotations)

points_local = self.to_points(single_repr)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'alphafold2-pytorch',
packages = find_packages(),
version = '0.4.24',
version = '0.4.25',
license='MIT',
description = 'AlphaFold2 - Pytorch',
author = 'Phil Wang, Eric Alcaide',
Expand Down

0 comments on commit c39e31e

Please sign in to comment.