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
f3087e31
Commit
f3087e31
authored
Jul 29, 2022
by
Gustaf Ahdritz
Browse files
Merge branch 'main' of github.com:aqlaboratory/openfold into main
parents
a89d43e4
ecd5a7ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
openfold/utils/rigid_utils.py
openfold/utils/rigid_utils.py
+1
-0
run_pretrained_openfold.py
run_pretrained_openfold.py
+5
-2
No files found.
openfold/utils/rigid_utils.py
View file @
f3087e31
...
...
@@ -96,6 +96,7 @@ def identity_rot_mats(
)
rots
=
rots
.
view
(
*
((
1
,)
*
len
(
batch_dims
)),
3
,
3
)
rots
=
rots
.
expand
(
*
batch_dims
,
-
1
,
-
1
)
rots
=
rots
.
contiguous
()
return
rots
...
...
run_pretrained_openfold.py
View file @
f3087e31
...
...
@@ -109,8 +109,9 @@ def round_up_seqlen(seqlen):
def
run_model
(
model
,
batch
,
tag
,
args
):
with
torch
.
no_grad
():
# Disable templates if there aren't any in the batch
model
.
config
.
template
.
enabled
=
model
.
config
.
template
.
enabled
and
any
([
# Temporarily disable templates if there aren't any in the batch
template_enabled
=
model
.
config
.
template
.
enabled
model
.
config
.
template
.
enabled
=
template_enabled
and
any
([
"template_"
in
k
for
k
in
batch
])
...
...
@@ -120,6 +121,8 @@ def run_model(model, batch, tag, args):
inference_time
=
time
.
perf_counter
()
-
t
logger
.
info
(
f
"Inference time:
{
inference_time
}
"
)
model
.
config
.
template
.
enabled
=
template_enabled
return
out
...
...
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