Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
2e3e51c8
"classification/git@developer.sourcefind.cn:OpenDAS/dcnv3.git" did not exist on "213b0b8de4224f642a21c2580e99da9bc0308b52"
Commit
2e3e51c8
authored
Jan 16, 2022
by
Kolja Stahl
Browse files
move uniform_recycling
parent
809a9861
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
openfold/config.py
openfold/config.py
+3
-1
openfold/data/data_modules.py
openfold/data/data_modules.py
+5
-7
No files found.
openfold/config.py
View file @
2e3e51c8
...
@@ -174,7 +174,6 @@ config = mlc.ConfigDict(
...
@@ -174,7 +174,6 @@ config = mlc.ConfigDict(
},
},
"supervised"
:
{
"supervised"
:
{
"clamp_prob"
:
0.9
,
"clamp_prob"
:
0.9
,
"uniform_recycling"
:
True
,
"supervised_features"
:
[
"supervised_features"
:
[
"all_atom_mask"
,
"all_atom_mask"
,
"all_atom_positions"
,
"all_atom_positions"
,
...
@@ -194,6 +193,7 @@ config = mlc.ConfigDict(
...
@@ -194,6 +193,7 @@ config = mlc.ConfigDict(
"crop_size"
:
None
,
"crop_size"
:
None
,
"supervised"
:
False
,
"supervised"
:
False
,
"subsample_recycling"
:
False
,
"subsample_recycling"
:
False
,
"uniform_recycling"
:
False
,
},
},
"eval"
:
{
"eval"
:
{
"fixed_size"
:
True
,
"fixed_size"
:
True
,
...
@@ -206,6 +206,7 @@ config = mlc.ConfigDict(
...
@@ -206,6 +206,7 @@ config = mlc.ConfigDict(
"crop_size"
:
None
,
"crop_size"
:
None
,
"supervised"
:
True
,
"supervised"
:
True
,
"subsample_recycling"
:
False
,
"subsample_recycling"
:
False
,
"uniform_recycling"
:
False
,
},
},
"train"
:
{
"train"
:
{
"fixed_size"
:
True
,
"fixed_size"
:
True
,
...
@@ -221,6 +222,7 @@ config = mlc.ConfigDict(
...
@@ -221,6 +222,7 @@ config = mlc.ConfigDict(
"clamp_prob"
:
0.9
,
"clamp_prob"
:
0.9
,
"subsample_recycling"
:
True
,
"subsample_recycling"
:
True
,
"max_distillation_msa_clusters"
:
1000
,
"max_distillation_msa_clusters"
:
1000
,
"uniform_recycling"
:
True
,
},
},
"data_module"
:
{
"data_module"
:
{
"use_small_bfd"
:
False
,
"use_small_bfd"
:
False
,
...
...
openfold/data/data_modules.py
View file @
2e3e51c8
...
@@ -284,18 +284,16 @@ class OpenFoldDataLoader(torch.utils.data.DataLoader):
...
@@ -284,18 +284,16 @@ class OpenFoldDataLoader(torch.utils.data.DataLoader):
(
"use_clamped_fape"
,
[
1
-
clamp_prob
,
clamp_prob
])
(
"use_clamped_fape"
,
[
1
-
clamp_prob
,
clamp_prob
])
)
)
if
(
s
elf
.
stage
==
"train"
and
self
.
config
.
supervised
.
uniform_recycling
):
if
(
s
tage_cfg
.
uniform_recycling
):
recycling_probs
=
[
recycling_probs
=
[
1.
/
(
max_iters
+
1
)
for
_
in
range
(
max_iters
+
1
)
1.
/
(
max_iters
+
1
)
for
_
in
range
(
max_iters
+
1
)
]
]
keyed_probs
.
append
(
(
"no_recycling_iters"
,
recycling_probs
)
)
else
:
else
:
recycling_probs
=
[
recycling_probs
=
[
0.
for
_
in
range
(
max_iters
+
1
)
0.
for
_
in
range
(
max_iters
+
1
)
]
]
recycling_probs
[
-
1
]
=
1.
recycling_probs
[
-
1
]
=
1.
keyed_probs
.
append
(
keyed_probs
.
append
(
(
"no_recycling_iters"
,
recycling_probs
)
(
"no_recycling_iters"
,
recycling_probs
)
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment