Skip to content

Commit

Permalink
forgot to pytest, fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
haruishi43 committed Sep 20, 2020
1 parent 795a6c1 commit 59fd845
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion equilib/cube2equi/cube2equi_torch/cube2equi.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _equirect_facetype(self, h: int, w: int) -> torch.Tensor:

return tp.type(torch.int32)

def create_equi_grid(self, h_out: int, w_out: int) -> Tuple(torch.Tensor):
def create_equi_grid(self, h_out: int, w_out: int) -> Tuple[torch.Tensor]:
_dtype = torch.float32
theta = torch.linspace(-math.pi, math.pi, steps=w_out, dtype=_dtype)
phi = torch.linspace(math.pi, -math.pi, steps=h_out, dtype=_dtype) / 2
Expand Down
2 changes: 1 addition & 1 deletion equilib/equi2cube/equi2cube_numpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def cube_h2list(cube_h: np.ndarray) -> List[np.ndarray]:
return np.split(cube_h, 6, axis=-1)


def cube_h2dict(cube_h: np.ndarray) -> Dict[np.ndarray]:
def cube_h2dict(cube_h: np.ndarray) -> Dict[str, np.ndarray]:
cube_list = cube_h2list(cube_h)
return dict(
[
Expand Down
2 changes: 1 addition & 1 deletion equilib/equi2cube/equi2cube_torch/equi2cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def run(
torch.Tensor,
List[torch.Tensor],
List[Dict[str, torch.Tensor]],
Dict[torch.Tensor],
Dict[str, torch.Tensor],
]:
r"""Call Equi2Cube
Expand Down

0 comments on commit 59fd845

Please sign in to comment.