Skip to content

Commit

Permalink
Fix import.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaeladuta committed Dec 2, 2024
1 parent 8d40e3d commit e5ddb1c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions l2gv2/manopt_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
import pymanopt.manifolds
import pymanopt.optimizers
import numpy as np
import local2global as l2g

from .patch import utils as ut
from .patch.patch import Patch


Expand Down Expand Up @@ -466,7 +465,7 @@ def cost(*R):
translations = result.point[n_patches : 2 * n_patches]

scales = result.point[2 * n_patches :]
emb_problem = l2g.AlignmentProblem(patches)
emb_problem = ut.AlignmentProblem(patches)

if emb_problem.n_nodes is None or emb_problem.dim is None:
raise ValueError("Both n_nodes and dim must be set to integer values.")
Expand Down

0 comments on commit e5ddb1c

Please sign in to comment.