stylegan2-pytorch
stylegan2-pytorch copied to clipboard
RuntimeError: Unknown type name 'torch.device':
`File "/home/lbc/.local/bin/stylegan2_pytorch", line 5, in
# Create coordinates grid.
grid: torch.Tensor = create_meshgrid(height, width, normalized_coordinates, input.device)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
grid = grid.to(input.dtype)
'spatial_expectation2d' is being compiled since it was called from 'spatial_soft_argmax2d' File "/home/lbc/.local/lib/python3.6/site-packages/kornia/geometry/subpix/spatial_soft_argmax.py", line 516 """ input_soft: torch.Tensor = dsnt.spatial_softmax2d(input, temperature) output: torch.Tensor = dsnt.spatial_expectation2d(input_soft, normalized_coordinates) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE return output`
hmm, that looks like an error with kornia, a separate library
hmm, that looks like an error with kornia, a separate library
thank u, that is an error with kornia and the edition of pytorch .
@Williamlizl how did you solve this? I have same issue on win10
I solved this problem by simply using an earlier version of kornia. Kornia 0.1.4 works in my situation.
@Williamlizl how did you solve this? I have same issue on win10