Closed IzhanVarsky closed 2 years ago
The solution of the problem is to change the type of points
tensor from int64
to float
. For example using .float()
method:
points = torch.tensor([256, 226,
226, 226, 226, 256, 226, 256,
226, 256, 226, 286, 256, 286,
286, 286, 286, 256, 286, 256,
286, 226, 256, 226, 256, 226]).view(-1, 2).float()
How to change type of points from int
to float
when using the function from_svg_path()
, as we specify only the svg path and not the points in function?
Hi. I tried to create a circle using diffvg. Here's my code:
But this fails with error:
I don't think this is normal.