Skip to content

Commit 6dad1e5

Browse files
committed
unlike images, do not think it is clamped
1 parent ac6f104 commit 6dad1e5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

alphafold3_pytorch/alphafold3.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ def sample(
18601860
self,
18611861
atom_mask: Bool['b m'] | None = None,
18621862
num_sample_steps = None,
1863-
clamp = True,
1863+
clamp = False,
18641864
**network_condition_kwargs
18651865
):
18661866
num_sample_steps = default(num_sample_steps, self.num_sample_steps)
@@ -1911,7 +1911,9 @@ def sample(
19111911

19121912
atom_pos = atom_pos_next
19131913

1914-
atom_pos = atom_pos.clamp(-1., 1.)
1914+
if clamp:
1915+
atom_pos = atom_pos.clamp(-1., 1.)
1916+
19151917
return atom_pos
19161918

19171919
# training

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "alphafold3-pytorch"
3-
version = "0.0.32"
3+
version = "0.0.33"
44
description = "Alphafold 3 - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" }

0 commit comments

Comments
 (0)