mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 14:20:38 +08:00
Fix inversion between fine and coarse implicit_functions
Summary: Fine implicit function was called before the coarse implicit function. Reviewed By: shapovalov Differential Revision: D46224224 fbshipit-source-id: 6b1cc00cc823d3ea7a5b42774c9ec3b73a69edb5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e0c3ca97ff
commit
35badc0892
@@ -109,9 +109,9 @@ class TestOverfitModel(unittest.TestCase):
|
||||
|
||||
# Adapt the mapping from generic model to overfit model
|
||||
mapping_om_from_gm = {
|
||||
key.replace("_implicit_functions.0._fn", "implicit_function").replace(
|
||||
"_implicit_functions.1._fn", "coarse_implicit_function"
|
||||
): val
|
||||
key.replace(
|
||||
"_implicit_functions.0._fn", "coarse_implicit_function"
|
||||
).replace("_implicit_functions.1._fn", "implicit_function"): val
|
||||
for key, val in generic_model.state_dict().items()
|
||||
}
|
||||
# Copy parameters from generic_model to overfit_model
|
||||
|
||||
Reference in New Issue
Block a user