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
a9cf892f
Commit
a9cf892f
authored
Sep 28, 2023
by
Geoffrey Yu
Browse files
update feature_pipeline accordingly
parent
9aebc203
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
openfold/data/feature_pipeline.py
openfold/data/feature_pipeline.py
+13
-5
No files found.
openfold/data/feature_pipeline.py
View file @
a9cf892f
...
@@ -93,14 +93,22 @@ def np_example_to_features(
...
@@ -93,14 +93,22 @@ def np_example_to_features(
with
torch
.
no_grad
():
with
torch
.
no_grad
():
if
is_multimer
:
if
is_multimer
:
features
,
gt_features
=
input_pipeline_multimer
.
process_tensors_from_config
(
tensor_dict
,
cfg
.
common
,
cfg
[
mode
],
)
if
mode
==
'train'
:
if
mode
==
'train'
:
features
,
gt_features
=
input_pipeline_multimer
.
process_tensors_from_config
(
tensor_dict
,
cfg
.
common
,
cfg
[
mode
],
is_training
=
True
)
return
{
k
:
v
for
k
,
v
in
features
.
items
()},
gt_features
return
{
k
:
v
for
k
,
v
in
features
.
items
()},
gt_features
else
:
else
:
features
=
input_pipeline_multimer
.
process_tensors_from_config
(
tensor_dict
,
cfg
.
common
,
cfg
[
mode
],
is_training
=
False
)
return
{
k
:
v
for
k
,
v
in
features
.
items
()}
return
{
k
:
v
for
k
,
v
in
features
.
items
()}
else
:
else
:
...
...
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