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
2da285aa
Commit
2da285aa
authored
Sep 28, 2023
by
Geoffrey Yu
Browse files
fixed the return issue in np_example_to_features when training monomer
parent
cb43a5b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
openfold/data/feature_pipeline.py
openfold/data/feature_pipeline.py
+9
-4
No files found.
openfold/data/feature_pipeline.py
View file @
2da285aa
...
...
@@ -92,14 +92,19 @@ def np_example_to_features(
)
with
torch
.
no_grad
():
if
(
not
is_multimer
)
:
features
=
input_pipeline
.
process_tensors_from_config
(
if
is_multimer
:
features
,
gt_features
=
input_pipeline
_multimer
.
process_tensors_from_config
(
tensor_dict
,
cfg
.
common
,
cfg
[
mode
],
)
if
mode
==
'train'
:
return
{
k
:
v
for
k
,
v
in
features
.
items
()},
gt_features
else
:
return
{
k
:
v
for
k
,
v
in
features
.
items
()}
else
:
features
,
gt_features
=
input_pipeline
_multimer
.
process_tensors_from_config
(
features
=
input_pipeline
.
process_tensors_from_config
(
tensor_dict
,
cfg
.
common
,
cfg
[
mode
],
...
...
@@ -120,7 +125,7 @@ def np_example_to_features(
dtype
=
torch
.
float32
,
)
return
{
k
:
v
for
k
,
v
in
features
.
items
()}
,
gt_features
return
{
k
:
v
for
k
,
v
in
features
.
items
()}
class
FeaturePipeline
:
...
...
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