Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaeladuta committed Nov 8, 2024
1 parent 8e7f081 commit 6cd7f0e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion l2gv2/manopt_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ def consecutive_loss(


# pylint: disable=invalid-name
# pylint: disable=no-member
# pylint does not infer autograd.numpy.linalg.norm so disable no-member
def ANPloss_nodes_consecutive_patches(
rotations, scales, translations, patches, nodes, dim, k, rand: Optional[bool] = True
):
Expand Down Expand Up @@ -312,9 +314,12 @@ def ANPloss_nodes_consecutive_patches(

return l # , fij
# pylint: enable=invalid-name
# pylint: enable=no-member


# pylint: disable=invalid-name
# pylint: disable=no-member
# pylint does not infer autograd.numpy.linalg.norm so disable no-member
def ANPloss_nodes(
rotations, scales, translations, patches, nodes, dim, k, rand: Optional[bool] = True
):
Expand Down Expand Up @@ -379,7 +384,10 @@ def ANPloss_nodes(

return 1 / len(patches) * l # fij
# pylint enable=invalid-name
# pylint enable=no-member

# pylint: disable=no-member
# pylint does not infer autograd.numpy.random.seed so disable no-member
def optimization(
patches,
nodes,
Expand Down Expand Up @@ -463,7 +471,7 @@ def cost(*R):
)

return result, embedding

# pylint enable=no-member

def loss_dictionary(rs, ss, ts, nodes, patches, dim, k):
"""TODO: docstring for `loss_dictionary`.
Expand Down

0 comments on commit 6cd7f0e

Please sign in to comment.