Skip to content

Commit

Permalink
Merge pull request #52 from 0xsuu/master
Browse files Browse the repository at this point in the history
Fixed a bug in look.py
  • Loading branch information
nkolot authored May 22, 2019
2 parents b4c60bc + 5de5bf1 commit 5c7ff4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_renderer/look.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def look(vertices, eye, direction=[0, 1, 0], up=None):
elif isinstance(direction, np.ndarray):
direction = torch.from_numpy(direction).to(device)
elif torch.is_tensor(direction):
direction.to(device)
direction = direction.to(device)

if isinstance(eye, list) or isinstance(eye, tuple):
eye = torch.tensor(eye, dtype=torch.float32, device=device)
Expand Down

0 comments on commit 5c7ff4f

Please sign in to comment.