Skip to content

Commit

Permalink
fix typo in rotation_transformer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pointW authored Oct 25, 2023
1 parent 7dd9dc4 commit de4384e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diffusion_policy/model/common/rotation_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self,
getattr(pt, f'matrix_to_{from_rep}')
]
if from_convention is not None:
funcs = [functools.partial(func, convernsion=from_convention)
funcs = [functools.partial(func, convention=from_convention)
for func in funcs]
forward_funcs.append(funcs[0])
inverse_funcs.append(funcs[1])
Expand All @@ -51,7 +51,7 @@ def __init__(self,
getattr(pt, f'{to_rep}_to_matrix')
]
if to_convention is not None:
funcs = [functools.partial(func, convernsion=to_convention)
funcs = [functools.partial(func, convention=to_convention)
for func in funcs]
forward_funcs.append(funcs[0])
inverse_funcs.append(funcs[1])
Expand Down

0 comments on commit de4384e

Please sign in to comment.