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
2e3404a1
"git@developer.sourcefind.cn:OpenDAS/openfold.git" did not exist on "a44bbebbfa4dbb8b228e0c8d77338173cf78d699"
Commit
2e3404a1
authored
Mar 23, 2022
by
Gustaf Ahdritz
Browse files
Fix bug in DRMSD function
parent
86a1f756
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openfold/utils/loss.py
openfold/utils/loss.py
+1
-1
No files found.
openfold/utils/loss.py
View file @
2e3404a1
...
@@ -1531,7 +1531,7 @@ def compute_drmsd(structure_1, structure_2, mask=None):
...
@@ -1531,7 +1531,7 @@ def compute_drmsd(structure_1, structure_2, mask=None):
drmsd
=
drmsd
**
2
drmsd
=
drmsd
**
2
drmsd
=
torch
.
sum
(
drmsd
,
dim
=
(
-
1
,
-
2
))
drmsd
=
torch
.
sum
(
drmsd
,
dim
=
(
-
1
,
-
2
))
n
=
d1
.
shape
[
-
1
]
if
mask
is
None
else
torch
.
sum
(
mask
,
dim
=-
1
)
n
=
d1
.
shape
[
-
1
]
if
mask
is
None
else
torch
.
sum
(
mask
,
dim
=-
1
)
drmsd
=
drmsd
*
(
1
/
(
n
*
(
n
-
1
)))
if
n
>
1
else
0.
drmsd
=
drmsd
*
(
1
/
(
n
*
(
n
-
1
)))
if
n
>
1
else
(
drmsd
*
0.
)
drmsd
=
torch
.
sqrt
(
drmsd
)
drmsd
=
torch
.
sqrt
(
drmsd
)
return
drmsd
return
drmsd
...
...
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